public void ShouldGetLatestBloodPressureDate() { //Given var date = new DateTime(2018, 1, 4); _healthRepository.Setup(x => x.GetLatestBloodPressureDate()).Returns(date); //when var latestDate = _healthService.GetLatestBloodPressureDate(DateTime.MinValue); //then Assert.Equal(date, latestDate); }