Example #1
0
        public void Handle(AnchorUnassigned @event)
        {
            var dto  = Find(@event.SourceId);
            var seat = dto.Anchors.First(x => x.Position == @event.Position);

            seat.Attendee.Email = seat.Attendee.FirstName = seat.Attendee.LastName = null;
            Save(dto);
        }
Example #2
0
 public void Handle(AnchorUnassigned @event)
 {
     if (!ProcessOrder(order => order.AssignmentsId == @event.SourceId, order =>
     {
         var seat = order.Anchors.FirstOrDefault(x => x.Position == @event.Position);
         if (seat != null)
         {
             order.Anchors.Remove(seat);
         }
         else
         {
             logger.LogError("Failed to locate the seat being unassigned at position {0} for assignment {1}.", @event.Position, @event.SourceId);
         }
     }))
     {
         logger.LogError("Failed to locate the order with seat assignments id {0} for the seat being unassigned at position {1}.", @event.SourceId, @event.Position);
     }
 }
Example #3
0
 private void OnAnchorUnassigned(AnchorUnassigned e)
 {
     this.anchors[e.Position] = Mapper.Map(e, new AnchorAssignment {
         AnchorType = this.anchors[e.Position].AnchorType
     });
 }