Example #1
0
 public CompaniesController(CursedDataContext db,
                            [FromServices] IErrorHandlerFactory errorHandlerFactory,
                            [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new CompaniesLogic(db);
     logicValidation  = new CompaniesLogicValidation(db, errorHandlerFactory);
     this.logProvider = logProvider;
 }
Example #2
0
 public CompaniesTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new CompaniesLogicValidation(fixture.db, new StatusMessageFactory());
 }