示例#1
0
        public void TestSuppliedDateIsSunday()
        {
            var dte   = "Mar 7, 2021 1pm";
            var check = CallCenterTimeMgt.CheckIfDateIsSunday(DateTime.Parse(dte));

            Assert.True(check);
        }
示例#2
0
        public void TestSuppliedDateAndTimeIsEqualToOrMoreThan2Hours()
        {
            var dte   = DateTime.Now.AddHours(3);
            var check = CallCenterTimeMgt.CheckTimeisMoreThan2Hours(dte);

            Assert.True(check);
        }
示例#3
0
        public void TestSuppliedDateAndTimeIsNotMoreThan6Days()
        {
            var dte   = DateTime.Now.AddDays(7);
            var check = CallCenterTimeMgt.CheckTimeIsLessThan6Days(dte);

            Assert.False(check);
        }
示例#4
0
        public void TestSuppliedDateAndTimeIsWithinOperatingHour()
        {
            var dte   = "Mar 6, 2021 10am";
            var check = CallCenterTimeMgt.TimeisWithinOperatingHour(DateTime.Parse(dte), "9am", "12pm");

            Assert.True(check);
        }