Example #1
0
        public void GetCompletedLessonsTest_Fails(string userGuid)
        {
            _resultsService.Setup(x => x.GetUserLessonsByUserGuid(It.IsAny <string>())).Returns((new List <UserLesson>()).AsQueryable());
            _resultsService.Setup(x => x.GetUserByGuid(It.IsAny <string>())).Returns((User)null);

            var result = _resultsManager.GetCompletedLessons(userGuid);

            Assert.True(result != null);
            Assert.False(result.Success);
        }