예제 #1
0
        public IocFixture()
        {
            var sc = new ServiceCollection();

            var config = new ConfigurationBuilder()
                         .AddJsonFile("appsettings.json", true)
                         .Build();

            sc.AddLogging();

            sc.AddSingleton <IConfiguration>(config);

            new ServiceConfiguration().Configure(sc);

            FakeServiceSetup.Run(sc, true);

            _sp = sc.BuildServiceProvider();
        }
예제 #2
0
파일: WebServer.cs 프로젝트: mruhul/BDDShop
 private void SetupFakes(IServiceCollection sc)
 {
     FakeServiceSetup.Run(sc, false);
 }