コード例 #1
0
        public void InvalidateEmpId()
        {
            //var bookingProcessor = new Mock<IBookingProcessor>();
            var timeBProc = new TimeBProcessor();

            Assert.Throws <ArgumentOutOfRangeException>(() => timeBProc.BookTime(new Employee(), DateTime.Today, 8));
        }
コード例 #2
0
        public void validateOutput()
        {
            var timeBProc = new TimeBProcessor();

            Assert.True(timeBProc.BookTime(new Employee {
                empId = 2
            }, DateTime.Today, 9));
        }
コード例 #3
0
        public void InvalidateDuration()
        {
            var timeBProc = new TimeBProcessor();

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