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