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(); }
private void SetupFakes(IServiceCollection sc) { FakeServiceSetup.Run(sc, false); }