Example #1
0
        public async Task GetUserDiaryTest()
        {
            var diaryName = "testdiary";
            var isSecret  = false;

            await _diaryService.CreateDiaryInfoAsync(_user, diaryName, isSecret);

            var userDiaryInfo = await _diaryService.GetUserDiaryInfoAsync(_user);

            var diaryInfo = await _diaryService.GetDiaryInfoAsync(_user, userDiaryInfo.MyDiaryList.First());

            Assert.Equal(diaryName, diaryInfo.DiaryName);
        }