Esempio n. 1
0
        public void InvalidateEmpId()
        {
            //var bookingProcessor = new Mock<IBookingProcessor>();
            var timeBProc = new TimeBProcessor();

            Assert.Throws <ArgumentOutOfRangeException>(() => timeBProc.BookTime(new Employee(), DateTime.Today, 8));
        }
Esempio n. 2
0
        public void validateOutput()
        {
            var timeBProc = new TimeBProcessor();

            Assert.True(timeBProc.BookTime(new Employee {
                empId = 2
            }, DateTime.Today, 9));
        }
Esempio n. 3
0
        public void InvalidateDuration()
        {
            var timeBProc = new TimeBProcessor();

            Assert.Throws <ArgumentOutOfRangeException>(() => timeBProc.BookTime(
                                                            new Employee {
                empId = 2
            }, DateTime.Today, 10));
        }