コード例 #1
0
ファイル: IocTestFixture.cs プロジェクト: goofybryan/ZarDevs
        public IocTestFixture()
        {
            var kernel = IocAutoFac.Initialize();

            Container = Ioc.Initialize(kernel, builder =>
            {
                builder.ConfigureTest();
            });
        }
コード例 #2
0
        public IocPerformanceTestFixture()
        {
            var kernel = IocAutoFac.Initialize();

            Container = Ioc.Initialize(kernel, builder =>
            {
                builder.ConfigurePerformanceTest();
            });

            DirectContainer     = ((IIocContainer <IContainer>)Container).Kernel;
            ContainerComparison = CreateComparison();
        }