public UserManagmentController(CursedAuthenticationContext db, [FromServices] IGenPasswordHash genPasswordHash, [FromServices] IErrorHandlerFactory errorHandlerFactory, [FromServices] IHttpContextAccessor contextAccessor, [FromServices] ILogProvider <CursedAuthenticationContext> logProvider) { logic = new UserManagmentLogic(db, genPasswordHash); logicValidation = new UserManagmentLogicValidation(db, errorHandlerFactory, contextAccessor, genPasswordHash); this.logProvider = logProvider; }
public UserManagmentTests(TestsFixture fixture) { this.fixture = fixture; logic = new UserManagmentLogic(fixture.dbAuth, new PasswordHashStub()); }