Пример #1
0
        public override void TearDown()
        {
            base.TearDown();

            //reset the app context
            DataTypesResolver.Reset();
        }
Пример #2
0
        public override void TearDown()
        {
            //reset the app context
            DataTypesResolver.Reset();
            PluginManager.Current = null;

            base.TearDown();
        }
Пример #3
0
        public override void TearDown()
        {
            //reset the app context
            DataTypesResolver.Reset();

            _error = null;

            //dispose!
            _dbFactory.Dispose();
            _uowProvider.Dispose();

            base.TearDown();
        }
Пример #4
0
        public override void TearDown()
        {
            base.TearDown();

            //reset the app context
            DataTypesResolver.Reset();
            ApplicationContext.Current = null;
            Resolution.IsFrozen        = false;
            PluginManager.Current      = null;

            string path = TestHelper.CurrentAssemblyDirectory;

            AppDomain.CurrentDomain.SetData("DataDirectory", null);

            SerializationService = null;

            UmbracoSettings.ResetSetters();
        }
Пример #5
0
        public override void TearDown()
        {
            base.TearDown();

            //TestHelper.ClearDatabase();

            //reset the app context
            DataTypesResolver.Reset();
            ApplicationContext.Current = null;
            Resolution.IsFrozen        = false;

            RepositoryResolver.Reset();

            string path = TestHelper.CurrentAssemblyDirectory;

            AppDomain.CurrentDomain.SetData("DataDirectory", null);

            UmbracoSettings.ResetSetters();
        }
Пример #6
0
        public override void Initialize()
        {
            Resolution.IsFrozen = false;

            //this ensures its reset
            PluginManager.Current = new PluginManager();

            //for testing, we'll specify which assemblies are scanned for the PluginTypeResolver
            PluginManager.Current.AssembliesToScan = new[]
            {
                typeof(IDataType).Assembly,
                typeof(tinyMCE3dataType).Assembly
            };

            DataTypesResolver.Reset();
            DataTypesResolver.Current = new DataTypesResolver(
                () => PluginManager.Current.ResolveDataTypes());

            base.Initialize();
        }
Пример #7
0
 public void TearDown()
 {
     DataTypesResolver.Reset();
     Resolution.IsFrozen = false;
 }
Пример #8
0
 public void TearDown()
 {
     DataTypesResolver.Reset();
     PluginManager.Current = null;
 }