public void ExceptionTestFor_AppoinmentNotFound() { Staff staff = new Staff() { StaffId = 1 }; //Assert var ex = Assert.Throws <SearchAppoinmentException>(() => _OfficeManagerservice.SearchAppoinment(staff.StaffId)); Assert.Equal("Appoinment Not Found ", ex.Messages); }
public void Test_for_AppoinmentSearch() { Staff staff = new Staff() { StaffId = 1 }; var result = _OfficeManagerservice.SearchAppoinment(staff.StaffId); var GetAppoinment = _OfficeManagerservice.GetAppointment(staff.StaffId); Assert.Equal(GetAppoinment, result); }