public void AddGrade() { // Arrange: AddGradeViewModel gradeModel = new AddGradeViewModel { GradeValue = 8, SSN = "2233882299", AssignmentID = 4 }; // Act: GradeDTO addedGrade = _service.AddGrade(gradeModel); // Assert: Assert.AreEqual(gradeModel.SSN, addedGrade.StudentSSN); Assert.AreEqual(gradeModel.GradeValue, addedGrade.GradeValue); Assert.AreEqual(gradeModel.AssignmentID, addedGrade.AssignmentID); }
public GradeDTO addGrade(AddGradeViewModel model) { return(_assignmentService.AddGrade(model)); }