Skip to content

Instantly share code, notes, and snippets.

@aidanmorgan
Created October 20, 2012 10:15
Show Gist options
  • Save aidanmorgan/3922877 to your computer and use it in GitHub Desktop.
Save aidanmorgan/3922877 to your computer and use it in GitHub Desktop.
#region DatabaseSetup
private TestContext _testContextInstance;
public TestContext TestContext
{
get { return _testContextInstance; }
set { _testContextInstance = value; }
}
private IUnitOfWorkFactory _unitOfWorkFactory = null;
[TestInitialize()]
public void BeforeTest()
{
_unitOfWorkFactory = new IntegrationTestUnitOfWorkFactory(_testContextInstance);
}
[TestCleanup()]
public void AfterTest()
{
((IntegrationTestUnitOfWorkFactory)_unitOfWorkFactory).Cleanup();
}
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment