Skip to content

Instantly share code, notes, and snippets.

View nelsonwellswku's full-sized avatar

Nelson Wells nelsonwellswku

View GitHub Profile
@nelsonwellswku
nelsonwellswku / Program.cs
Created August 7, 2016 18:47
Dispose not being called on middle decorate that implements IDisposable
using System;
using StructureMap;
using Xunit;
namespace Program
{
public class BugTests
{
[Fact]
public void DisposeNotBeingCalled()
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9"
if ((Test-Path -path $mongoDbPath) -eq $True)
{