public bool OverlapsWith(Timeslot other) { return(StartTime > other.StartTime && StartTime <= other.EndTime || EndTime >= other.StartTime && EndTime <= other.EndTime); }
public Timeslot SetEndTime(DateTime endTime) { ValidateInput(StartTime, endTime); return(Timeslot.Create(StartTime, endTime)); }
public bool OverlapsWith(DateTime startTime, DateTime endTime) { return(OverlapsWith(Timeslot.Create(startTime, endTime))); }
public Timeslot SetStartTime(DateTime startTime) { ValidateInput(startTime, EndTime); return(Timeslot.Create(startTime, EndTime)); }