Exemplo n.º 1
0
 public AccountsServiceTests()
 {
     fakeApplicationLogger               = A.Fake <IApplicationLogger>(ops => ops.Strict());
     fakeConfiguration                   = A.Fake <IConfigConfigurationProvider>(ops => ops.Strict());
     fakeAccountQueryRepository          = A.Fake <IAccountQueryRepository>(ops => ops.Strict());
     fakeAuditCommandRepository          = A.Fake <IAuditCommandRepository>(ops => ops.Strict());
     fakeCircuitBreakerQueryRepository   = A.Fake <ICircuitBreakerQueryRepository>(ops => ops.Strict());
     fakeCircuitBreakerCommandRepository = A.Fake <ICircuitBreakerCommandRepository>(ops => ops.Strict());
 }
 public AccountsService(
     IApplicationLogger applicationLogger,
     IConfigConfigurationProvider configuration,
     IAccountQueryRepository accountQueryRepository,
     IAuditCommandRepository auditCommandRepository,
     ICircuitBreakerQueryRepository circuitBreakerQueryRepository,
     ICircuitBreakerCommandRepository circuitBreakerCommandRepository)
 {
     this.applicationLogger               = applicationLogger;
     this.configuration                   = configuration;
     this.accountQueryRepository          = accountQueryRepository;
     this.auditCommandRepository          = auditCommandRepository;
     this.circuitBreakerQueryRepository   = circuitBreakerQueryRepository;
     this.circuitBreakerCommandRepository = circuitBreakerCommandRepository;
 }