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; }
public TransactionCloseTests(TestsFixture fixture) { this.fixture = fixture; operationValidation = new OperationDataValidation(fixture.db); logicValidation = new TransactionsLogicValidation(fixture.db, operationValidation, new StatusMessageFactory()); }
public TransactionsTests(TestsFixture fixture) { this.fixture = fixture; logicValidation = new TransactionsLogicValidation(fixture.db, new OperationValidationStub(), new StatusMessageFactory()); }