示例#1
0
        public void Test_GetDoctor_RetrievesAllDoctorsWithSpecialty()
        {
            Doctor firstDoctor  = new Doctor("Dr. John", "Cardiology");
            Doctor secondDoctor = new Doctor("Dr. Shruti", "Cardiology");

            firstDoctor.Save();
            secondDoctor.Save();

            List <Doctor> doctorList = Doctor.GetDoctor("Cardiology");
            List <Doctor> testList   = new List <Doctor> {
                firstDoctor, secondDoctor
            };

            Assert.Equal(doctorList, testList);
        }