public CustomerTests(TinyCrmFixture fixture) { _customers = fixture.Scope.ServiceProvider .GetRequiredService <ICustomerService>(); _dbContext = fixture.Scope.ServiceProvider .GetRequiredService <Data.CrmDbContext>(); }
public CustomerTests(TinyBankFixture fixture) { _customers = fixture.Scope.ServiceProvider .GetRequiredService <ICustomerService>(); _dbContext = fixture.Scope.ServiceProvider .GetRequiredService <Data.CrmDbContext>(); _accounts = fixture.Scope.ServiceProvider .GetRequiredService <IAccountService>(); _transactions = fixture.Scope.ServiceProvider .GetRequiredService <ITransactionService>(); }