Exemplo n.º 1
0
 public void Handle(BookingMade @event)
 {
     //Don't add this if it is relevant to this system - this will already have been done locally.
     if (@event.BookingTypeId != Constants.SalesAppointmentBookingTypeId)
     {
         var consultant = _consultantRepository.GetById(@event.EmployeeId);
         TimeAllocation.Book(consultant, @event.Id, @event.Start, @event.End);
     }
 }
Exemplo n.º 2
0
 public void Handle(BookingMade @event)
 {
     //Don't add this if it is relevant to this system - this will already have been done locally.
     if (@event.BookingTypeId != Constants.HolidayBookingTypeId)
     {
         var employee = _employeeRepository.GetById(@event.EmployeeId);
         TimeAllocation.Book(employee, @event.Id, @event.Start, @event.End);
     }
 }
Exemplo n.º 3
0
 // TODO : deprecate
 public bool IsInsideHoursClause(DateTime dt)
 {
     return(((null != ResultPositionsByHoursClauseOccurrences && ResultPositionsByHoursClauseOccurrences.Count > 0) ||
             (null != HoursClauseResults && HoursClauseResults.Count > 0)) &&
            (TimeAllocation != null) && (TimeAllocation.ContainsKey(dt)));
 }