public override void ConfigureServices(IServiceCollection services) { var svcFake = new CustomerServiceFake(); svcFake.AllCustomers.Add(new Customer { AccountNumber = 1, FirstName = "Oskar", LastName = "Gewalli" }); this.svc = svcFake; }
public override void ConfigureServices(IServiceCollection services) { base.ConfigureServices(services); var svcFake = new CustomerServiceFake(); svcFake.AllCustomers.Add(new Customer { AccountNumber = 1, FirstName = "Oskar", LastName = "Gewalli" }); services.AddSingleton <ICustomerService>(svcFake); }
public ContractTests() { svc = new CustomerServiceFake(); bootstrapper = new TestBootstrapper(svc); browser = new Browser(bootstrapper, defaults: to => to.Accept("application/xml")); }