public void TestUpdateGrade() { DbCourses dbCourses = new DbCourses(); dbCourses.Insert("Test Course", "Test Course"); DbStudents dbStudents = new DbStudents(); dbStudents.Insert("Test Student", "Test Student", "Test Student"); DbViewStudent dbViewStudent = new DbViewStudent(); dbViewStudent.Enrol("Test Student", "Test Course"); double actual = 5; gradesController.Post("Test Student", "Test Course", actual); ExpectedGrades expectedGrades = new ExpectedGrades(); double? expected = expectedGrades.GetGrade("Test Student", "Test Course").grade; Assert.Equal(expected, actual); dbViewStudent.Unenrol("Test Student", "Test Course"); dbCourses.Delete("Test Course"); dbStudents.Delete("Test Student", "Test Student", "Test Student"); }