public static void Init(TestContext testContext) { var passwordHash = new PasswordHashMock(); var dbContext = new DbContextMock(); _sessionTokenMock = new SessionTokenGenerateMock(); _authorizationService = new AuthorizationService(dbContext, passwordHash, _sessionTokenMock); }
public AuthorizationService(IDbContext dbContext, IPasswordHash passwordHash, ISessionTokenGenerate sessionTokenGenerator) { _dbContext = dbContext; _passwordHash = passwordHash; _sessionTokenGenerator = sessionTokenGenerator; _timeKeyWork = new TimeSpan(24, 0, 0); }
public static void Init(TestContext testContext) { var passwordHash = new PasswordHashMock(); var dbContext = new DbContextMock(); _sessionTokenMock = new SessionTokenGenerateMock(); _userSystemService = new UserSystemService(passwordHash, dbContext); }