public void InvalidateEmpId() { //var bookingProcessor = new Mock<IBookingProcessor>(); var timeBProc = new TimeBProcessor(); Assert.Throws <ArgumentOutOfRangeException>(() => timeBProc.BookTime(new Employee(), DateTime.Today, 8)); }
public void validateOutput() { var timeBProc = new TimeBProcessor(); Assert.True(timeBProc.BookTime(new Employee { empId = 2 }, DateTime.Today, 9)); }
public void InvalidateDuration() { var timeBProc = new TimeBProcessor(); Assert.Throws <ArgumentOutOfRangeException>(() => timeBProc.BookTime( new Employee { empId = 2 }, DateTime.Today, 10)); }