public void Handle(ReservationInstructionsChanged e)
        {
            if (e.Instructions == null)
            {
                return;
            }

            var tournament      = GetTournamentFromContingentId(e.Id);
            var contingentRooms = tournament.ContingentRooms.FirstOrDefault(x => x.Id == e.Id);

            if (contingentRooms == null)
            {
                var contingent = Contingents.Single(x => x.Key == e.Id);
                contingentRooms = new ContingentRooms
                {
                    Id       = contingent.Key,
                    Province = contingent.Value,
                };
                tournament.ContingentRooms.Add(contingentRooms);
            }
            contingentRooms.Instructions = e.Instructions;
        }
Example #2
0
 public void Apply(ReservationInstructionsChanged e)
 {
     Instructions = e.Instructions;
 }