Created RepositoryInstanceResolver/Factory to replace the configuration based instantiation of Repo's.

Added unit tests to support resoling each instance, fixed CodeFirstTests to ensure that the base.TearDown() method is
called. Changed the BaseMapper's to internal.
This commit is contained in:
Shannon Deminick
2012-12-09 09:01:00 +05:00
parent 0c29704d09
commit e0a7be7237
13 changed files with 338 additions and 42 deletions

View File

@@ -228,8 +228,11 @@ namespace Umbraco.Tests.CodeFirst
[TearDown]
public override void TearDown()
{
DatabaseContext.Database.Dispose();
base.TearDown();
//reset the app context
DataTypesResolver.Reset();
ApplicationContext.Current = null;