Пример #1
0
 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;
 }
Пример #2
0
 public UserManagmentTests(TestsFixture fixture)
 {
     this.fixture = fixture;
     logic        = new UserManagmentLogic(fixture.dbAuth, new PasswordHashStub());
 }