public void Handle(LeftParkingHouse e) { if (e.Id == _id) { _clientsInParkingHouse.Remove(e.Client); _clientsWhoHaveLeftParkingHouse.Add(e.Client); } }
public void Apply(LeftParkingHouse e) { switch (_clients[e.Client].ParkingSpotType) { case ParkingSpotType.Regular: _regularSpotsTaken--; break; case ParkingSpotType.Reserved: _reservedSpotsTaken--; break; } _clients.Remove(e.Client); }