Beispiel #1
0
        private void TearDown()
        {
            if (PublishedCachesResolver.HasCurrent)
            {
                UmbracoContext.Current     = null;
                ApplicationContext.Current = null;
                UmbMapperRegistry.ClearMappers();
                PublishedCachesResolver.Reset();

                if (Resolution.IsFrozen)
                {
                    Resolution.Reset();
                }
            }
        }
 public void Cleanup()
 {
     this.support?.Dispose();
     UmbMapperRegistry.ClearMappers();
 }