public CustomerTests(TinyCrmFixture fixture)
 {
     _customers = fixture.Scope.ServiceProvider
                  .GetRequiredService <ICustomerService>();
     _dbContext = fixture.Scope.ServiceProvider
                  .GetRequiredService <Data.CrmDbContext>();
 }
Exemple #2
0
 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>();
 }