public void Find_RetrievesStudentFromDB_() { Student newStudent = new Student("Fran", DateTime.Today); newStudent.Save(); Student result = Student.Find(newStudent.GetId()); Assert.Equal(newStudent, result); }
public void Test_Find_ReturnStudentFromDatabase() { //Arrange Student testStudent = firstStudent; testStudent.Save(); //Act Student foundStudent = Student.Find(testStudent.GetId()); //Assert Assert.Equal(testStudent, foundStudent); }