Exemple #1
0
        public static CompositionContainer MakeContainerAndCache(Settings settings, IEnumerable <Type> types)
        {
            var catalog   = MockHelper.CatalogForContainer(new[] { typeof(ITypedPool).Assembly }, types);
            var container = new CompositionContainer(catalog);

            container.GetExportedValue <ICacheServicing>().Initialize(settings, container);
            return(container);
        }