public async Task GetLastDiary_ReturnLast() { var lastDate = new DateTime(2020, 2, 1); await _diaryService.WriteDiaryAsync(_user, _diary, lastDate, "content-2"); await _diaryService.WriteDiaryAsync(_user, _diary, lastDate.AddDays(-1), "content-1"); var view = await _diaryService.GetLastDiaryViewAsync(_user, _diary); Assert.NotNull(view); Assert.Equal(lastDate, view.DiaryContents.First().Date); Assert.Equal(lastDate, view.DiaryNavigationData.Today); }