public void GetCourse_ReturnsNull_WhenCourseDoesNotExist()
        {
            //ARRANGE
            int courId = 10000;

            MockCourseRepository.Setup(x => x.GetById(courId)).Returns(CourseList().FirstOrDefault(x => x.Id == courId));
            MockUofW.Setup(x => x.CourseRepository).Returns(MockCourseRepository.Object);

            var ass = new RSAssistantRole(MockUofW.Object);

            //ACT
            var courById = ass.GetCourseById(courId);

            //ASSERT
            Assert.IsNull(courById);
        }
        public void GetCourse_ReturnsCourseByIDFromDB()
        {
            //ARRANGE
            int courId = 1;

            MockCourseRepository.Setup(x => x.GetById(courId)).Returns(CourseList().FirstOrDefault(x => x.Id == courId));
            MockUofW.Setup(x => x.CourseRepository).Returns(MockCourseRepository.Object);

            var ass = new RSAssistantRole(MockUofW.Object);

            //ACT
            var userById = ass.GetCourseById(courId);

            //ASSERT
            Assert.AreEqual(courId, userById.Id);
        }