Пример #1
0
 public TransactionsController(CursedDataContext db,
                               [FromServices] IOperationDataValidation operationValidation,
                               [FromServices] IErrorHandlerFactory errorHandlerFactory,
                               [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new TransactionsLogic(db);
     logicValidation  = new TransactionsLogicValidation(db, operationValidation, errorHandlerFactory);
     this.logProvider = logProvider;
 }
Пример #2
0
 public TransactionCloseTests(TestsFixture fixture)
 {
     this.fixture        = fixture;
     operationValidation = new OperationDataValidation(fixture.db);
     logicValidation     = new TransactionsLogicValidation(fixture.db, operationValidation, new StatusMessageFactory());
 }
Пример #3
0
 public TransactionsTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new TransactionsLogicValidation(fixture.db, new OperationValidationStub(), new StatusMessageFactory());
 }