Exemplo n.º 1
0
 public AuthenticationController(
     CursedAuthenticationContext db,
     [FromServices] IErrorHandlerFactory errorHandlerFactory,
     [FromServices] IGenPasswordHash genPassHash,
     [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new AuthenticationLogic(db);
     logicValidation  = new AuthenticationLogicValidation(db, errorHandlerFactory, genPassHash);
     this.logProvider = logProvider;
 }
Exemplo n.º 2
0
 public AuthenticationTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new AuthenticationLogicValidation(fixture.dbAuth, new StatusMessageFactory(), new PasswordHashStub());
 }