Example #1
0
        public void ExceptionTestFor_PatientNotFound()
        {
            Patient patient = new Patient()
            {
                PatientId = 1,
            };

            var ex = Assert.Throws <PatientNotFoundException>(() => _OfficeManagerservice.SearchPatient(patient.PatientId));

            Assert.Equal("Patient Not Found ", ex.Messages);
        }
Example #2
0
        public void Test_for_SearchPatient()
        {
            Patient patient = new Patient()
            {
                PatientId = 2,
            };

            var result     = _OfficeManagerservice.SearchPatient(patient.PatientId);
            var getpatient = _Nurseservices.GetPatient(patient.PatientId);

            Assert.Equal(getpatient, result);
        }