Esempio n. 1
0
        public async Task GetDiary_CheckNavigationData()
        {
            var date     = DateTime.Today;
            var nextDate = date.AddDays(1);
            await _diaryService.WriteDiaryAsync(_user, _diary, nextDate, "content-2");

            await _diaryService.WriteDiaryAsync(_user, _diary, date, "content-1");

            var view = await _diaryService.GetDiaryViewAsync(_user, _diary, date);

            Assert.Equal(_diary, view.DiaryInfo);
            Assert.Equal(date, view.DiaryNavigationData.Today);
        }