public void GetMortgageRates_ReturnsRatesList() { var options = new DbContextOptionsBuilder <MortgageDbContext>().UseInMemoryDatabase(databaseName: "MortgageDbTest1").Options; var dbContext = new MortgageDbContext(options); Seed(dbContext); var service = new MortgageService(new MortgageRateRepository(dbContext)); var rates = service.GetMortgageRates(); Assert.NotEmpty(rates); Assert.Equal(12, rates.Count); }