示例#1
0
        public void Delete_DeletesVetAssociationsFromDatabase_VetList()
        {
            //Arrange
            DateTime dob         = new DateTime(1986, 12, 5);
            Patient  testPatient = new Patient("Larry", "hernia", "bird", dob);

            testPatient.Save();
            string testName = "Home stuff";
            Vet    testVet  = new Vet("Doctor Phil", "Headstuff");

            testVet.Save();

            //Act
            testVet.AddPatient(testPatient);
            testVet.Delete();
            List <Vet> resultPatientVets = testPatient.GetVets();
            List <Vet> testPatientVets   = new List <Vet> {
            };

            //Assert
            CollectionAssert.AreEqual(testPatientVets, resultPatientVets);
        }