예제 #1
0
        public void can_tell_timespan()
        {
            var timeSpan = new ScheduleTimeSpan(8M, 9M);
            var subject = new OrgUnitSchedule(timeSpan);

            Assert.IsTrue(subject.TimeSpan.Equals(timeSpan));
        }
예제 #2
0
        public void can_construct_from_timespan()
        {
            var timeSpan = new ScheduleTimeSpan(8M, 9M);
            var subject = new OrgUnitSchedule(timeSpan);

            Assert.IsTrue(subject.OpenHours == timeSpan.OpenHours);
            Assert.IsTrue(subject.OpenTime == timeSpan.OpenTime);
        }