Beispiel #1
0
 public void MiddleTier_SendArrayPatient()
 {
     Patient[] arrayPatients = new Patient[3];
     arrayPatients[0] = new Patient {
         LName = "Jones", AddrNote = WebServiceTests.DirtyString
     };
     arrayPatients[1] = null;
     arrayPatients[2] = new Patient {
         SchedAfterTime = new TimeSpan(5, 30, 22)
     };
     Patient[] arrayPatientsReturned = WebServiceTests.SendArrayPatient(arrayPatients);
     Assert.AreNotEqual(arrayPatientsReturned, null);
     Assert.AreEqual(arrayPatientsReturned.Length, 3);
     Assert.AreEqual(arrayPatientsReturned[0].LName, "Jones");
     Assert.AreEqual(arrayPatientsReturned[0].AddrNote, WebServiceTests.DirtyString);
     Assert.AreEqual(arrayPatientsReturned[1], null);
     Assert.AreEqual(arrayPatientsReturned[2].SchedAfterTime.Hours, 5);
     Assert.AreEqual(arrayPatientsReturned[2].SchedAfterTime.Minutes, 30);
     Assert.AreEqual(arrayPatientsReturned[2].SchedAfterTime.Seconds, 22);
 }