public void Add(ConcertProjection item) { lock (_object) { _concerts[item.Id] = item; } }
public bool TryGetConcert(Guid id, out ConcertProjection concertProjection) { return(_concerts.TryGetValue(id, out concertProjection)); }
public void Project(ConcertCreatedEvent @event) { ConcertProjection concertProjection = new ConcertProjection(@event.ConcertId, @event.Title); _concerts.Add(concertProjection); }