public AuthServiceTest() { electionDbTest = new ElectionDbTestContext(); electionUnitOfWork = new UnitOfWork(electionDbTest.GetContext()); _configuration = new Mock <IConfiguration>().Object; authService = new AuthService(_configuration, electionUnitOfWork); }
public UserServicesTest() { // Arrange electionDbTest = new ElectionDbTestContext(); electionUnitOfWork = new UnitOfWork(electionDbTest.GetContext()); unisolApiProxy = new UnisolApiProxy("http://localhost:8088/api/"); _emailService = new EmailService(); _authService = new AuthService(_configuration, electionUnitOfWork); //var builder = new ConfigurationBuilder(); //_configuration = builder.Build(); _configuration = new Mock <IConfiguration>().Object; userServices = new UserServices(electionUnitOfWork, unisolApiProxy, _configuration, _emailService, _authService); }