Added BaseUmbracoApplicationTests and fixed up dispose on the ApplicationContext to ensure the db object is disposed and doesn't

reset the PluginManager (as this shouldn't really need to be done). Cleaned up all unit tests so they follow the same structure and
uses this base class where necessary and eliminates a lot of duplicate code.
This commit is contained in:
Shannon Deminick
2013-03-13 18:31:07 +04:00
parent c04ee7bdc7
commit 50b05d25f5
25 changed files with 231 additions and 302 deletions

View File

@@ -17,26 +17,6 @@ namespace Umbraco.Tests.TestHelpers
MappingResolver.Current = new MappingResolver(
() => PluginManager.Current.ResolveAssignedMapperTypes());
//MappingResolver.Current = new MappingResolver(
// new[]
// {
// typeof(ContentMapper),
// typeof(ContentTypeMapper),
// typeof(DataTypeDefinitionMapper),
// typeof(DictionaryMapper),
// typeof(DictionaryTranslationMapper),
// typeof(LanguageMapper),
// typeof(MediaMapper),
// typeof(MediaTypeMapper),
// typeof(PropertyGroupMapper),
// typeof(PropertyMapper),
// typeof(PropertyTypeMapper),
// typeof(RelationMapper),
// typeof(RelationTypeMapper),
// typeof(ServerRegistrationMapper),
// typeof(UserMapper),
// typeof(UserTypeMapper)
// });
Resolution.Freeze();
SetUp();
}