Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }