Example #1
0
 public bool OverlapsWith(Timeslot other)
 {
     return(StartTime > other.StartTime && StartTime <= other.EndTime ||
            EndTime >= other.StartTime && EndTime <= other.EndTime);
 }
Example #2
0
 public Timeslot SetEndTime(DateTime endTime)
 {
     ValidateInput(StartTime, endTime);
     return(Timeslot.Create(StartTime, endTime));
 }
Example #3
0
 public bool OverlapsWith(DateTime startTime, DateTime endTime)
 {
     return(this.OverlapsWith(Timeslot.Create(startTime, endTime)));
 }
Example #4
0
 public Timeslot SetStartTime(DateTime startTime)
 {
     ValidateInput(startTime, EndTime);
     return(Timeslot.Create(startTime, EndTime));
 }