public void GivenIHaveCourseGradeToUpdateItShouldSave() { ICourseGradeService courseGradeService = new CourseGradeService(mockedCourseGradeRepository.Object); courseGradeService.RemoveCourseGrade(sampleData); mockedCourseGradeRepository.Verify(c => c.DeleteCourseGrade(sampleData)); }
public void GivenIHaveCourseGradeToGetItShouldRetrieveAList() { ICourseGradeService courseGradeService = new CourseGradeService(mockedCourseGradeRepository.Object); courseGradeService.RetrieveCourseGrades("testuser"); mockedCourseGradeRepository.Verify(c => c.GetCourseGrades("testuser", null)); }
public void GivenIHaveCourseGradeToCreateItShouldSave() { ICourseGradeService courseGradeService = new CourseGradeService(mockedCourseGradeRepository.Object); courseGradeService.AddCourseGrade(sampleData); mockedCourseGradeRepository.Verify(c => c.InsertCourseGrade(sampleData)); }
public CourseGradesController(CourseGradeService courseGradeService) { this.courseGradeService = courseGradeService; }