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