private void Handle(ConferenceCreated evnt) { _id = evnt.AggregateRootId; _info = evnt.Info; _seatTypes = new List <SeatType>(); _reservations = new Dictionary <Guid, IEnumerable <ReservationItem> >(); _isPublished = false; }
private void Handle(ConferenceUpdated evnt) { var editableInfo = evnt.Info; _info = new ConferenceInfo( _info.AccessCode, _info.Owner, _info.Slug, editableInfo.Name, editableInfo.Description, editableInfo.Location, editableInfo.Tagline, editableInfo.TwitterSearch, editableInfo.StartDate, editableInfo.EndDate); }
public ConferenceCreated(Conference conference, ConferenceInfo info) : base(conference, info) { }
public Conference(Guid id, ConferenceInfo info) : base(id) { ApplyEvent(new ConferenceCreated(info)); }
public ConferenceEvent(ConferenceInfo info) { Info = info; }
public ConferenceCreated(ConferenceInfo info) : base(info) { }
public ConferenceEvent(Conference conference, ConferenceInfo info) : base(conference) { Info = info; }