public void GetEntryByDate_EntryExists_EntryIsReturned() { // Arrange var expectedResult = new CovidStatistics() { Id = 5, EntryDate = _exampleDate }; _covidStatisticsMockData.Add(expectedResult); _context.Add(expectedResult); _context.SaveChanges(); var covidStatisticsRepository = CreateCovidStatisticsRepository(); DateTime date = _exampleDate; // Act var result = covidStatisticsRepository.GetEntryByDate( date); // Assert Assert.AreEqual(expectedResult, result); }