public void can_tell_timespan() { var timeSpan = new ScheduleTimeSpan(8M, 9M); var subject = new OrgUnitSchedule(timeSpan); Assert.IsTrue(subject.TimeSpan.Equals(timeSpan)); }
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); }