public void Test_Find_FindsDoctorInDatabase() { //Arrange Doctor testDoctor = new Doctor("Dr. John", "Debugging"); testDoctor.Save(); //Act Doctor foundDoctor = Doctor.Find(testDoctor.GetId()); //Assert Assert.Equal(testDoctor, foundDoctor); }
public void Test_Find_FindsDoctorInDatabase() { //Arrange Doctor testDoctor = new Doctor("Dr. John", "Debugging"); testDoctor.Save(); //Act Doctor foundDoctor = Doctor.Find(testDoctor.GetId()); //Assert Assert.Equal(testDoctor, foundDoctor); }