public AuthenticationService(IConfiguration config, TechCafeDbContext dbContext, IMapper mapper, IPasswordHasher <User> passwordHasher) { this.config = config; this.dbContext = dbContext; this.mapper = mapper; this.passwordHasher = passwordHasher; }
public AuthenticationServiceTest() { config = A.Fake <IConfiguration>(); passwordHasher = new PasswordHasher <User>(); mapper = Mapper.Instance; var options = new DbContextOptionsBuilder <TechCafeDbContext>().UseInMemoryDatabase(databaseName: "TestDb").Options; dbContext = new TechCafeDbContext(options); }