Exemplo n.º 1
0
 public OperationsController(CursedDataContext db,
                             [FromServices] IErrorHandlerFactory errorHandlerFactory,
                             [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new OperationsLogic(db);
     logicValidation  = new OperationsLogicValidation(db, errorHandlerFactory);
     this.logProvider = logProvider;
 }
Exemplo n.º 2
0
 public OperationsTests(TestsFixture fixture)
 {
     this.fixture        = fixture;
     errorHandlerFactory = new StatusMessageFactory();
     logicValidation     = new OperationsLogicValidation(fixture.db, errorHandlerFactory);
 }
Exemplo n.º 3
0
 public OperationsTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new OperationsLogicValidation(fixture.db, new StatusMessageFactory());
 }