public void Dispose()
 {
     Appointment.DeleteAll();
     Doctor.DeleteAll();
     Patient.DeleteAll();
 }
示例#2
0
        // [Fact]
        //  public void Test_GetDoctors_RetrievesAllDoctorsWithSpecialty()
        //  {
        //    Doctor testDoctor = new Doctor("Household chores");
        //    testDoctor.Save();
        //
        //    Patient firstPatient = new Patient("Mow the lawn", testDoctor.GetId());
        //    firstPatient.Save();
        //    Patient secondPatient = new Patient("Do the dishes", testDoctor.GetId());
        //    secondPatient.Save();
        //
        //
        //    List<Patient> testPatientList = new List<Patient> {firstPatient, secondPatient};
        //    List<Patient> resultPatientList = testDoctor.GetPatients();
        //
        //    Assert.Equal(testPatientList, resultPatientList);
        //  }

        public void Dispose()
        {
            // Patient.DeleteAll();
            Doctor.DeleteAll();
        }
示例#3
0
 public void Dispose()
 {
     Doctor.DeleteAll();
 }