public RecipesController(CursedDataContext db, [FromServices] IErrorHandlerFactory errorHandlerFactory, [FromServices] ILogProvider <CursedAuthenticationContext> logProvider) { logic = new RecipesLogic(db); logicValidation = new RecipesLogicValidation(db, errorHandlerFactory); this.logProvider = logProvider; }
public RecipesTests(TestsFixture fixture) { this.fixture = fixture; logicValidation = new RecipesLogicValidation(fixture.db, new StatusMessageFactory()); }