public void GetDoctorCall_RemovesPatientWaitingOnCall() { IEmployeeManagement emergencyCentral = new EmergencyCentral(); IPatient expected = new Patient(0, 84653515); // Casting here to use the Interface as a guide to send the request in.(Also guarentees that EmergencyCentral is of type IEmergencyCentral) ((IEmergencyCentral)emergencyCentral).ElevateCallToDoctor(expected); IPatient actual = emergencyCentral.GetDoctorCall(); Assert.AreEqual(expected.TimeRequiredSeconds, actual.TimeRequiredSeconds); Assert.AreEqual(expected.PhoneNumber, actual.PhoneNumber); Assert.Null(emergencyCentral.GetDoctorCall()); }
public void GetDoctorCall_DoesNotThrow() { IEmployeeManagement emergencyCentral = new EmergencyCentral(); Assert.DoesNotThrow(() => emergencyCentral.GetDoctorCall()); }