Exemple #1
0
        public FactoryCacheContextTest()
        {
            var asm = Assembly.GetExecutingAssembly();

            FactoryCacheContext.ClearRegisteredItems();

            FactoryCacheContext.RegisterCache(asm, "CacheMockedForTesting", "Its.Onix.Core.Caches.CacheMockedForTesting");
            FactoryCacheContext.SetLoggerFactory(new Mock <ILoggerFactory>().Object);

            var items = new Dictionary <string, PluginEntry>();

            items.Add("Testing0", new PluginEntry(asm, "Testing0", "Its.Onix.Core.Caches.CacheMockedForTesting"));
            items.Add("Testing1", new PluginEntry(asm, "Testing1", "Its.Onix.Core.Caches.CacheMockedForTesting"));
            items.Add("Testing2", new PluginEntry(asm, "Testing2", "Its.Onix.Core.Caches.CacheMockedForTesting"));
            FactoryCacheContext.RegisterCaches(items);
        }