public StoragesController(CursedDataContext db, [FromServices] IErrorHandlerFactory errorHandlerFactory, [FromServices] ILogProvider <CursedAuthenticationContext> logProvider) { logic = new StoragesLogic(db); logicValidation = new StoragesLogicValidation(db, errorHandlerFactory); this.logProvider = logProvider; }
public StoragesTests(TestsFixture fixture) { this.fixture = fixture; logicValidation = new StoragesLogicValidation(fixture.db, new StatusMessageFactory()); }