protected void OnMeetingScheduled(MeetingScheduledEvent @event) { _title = @event.Title; _description = @event.Description; _location = @event.Location; _scheduledFor = @event.ScheduledFor; }
public Meeting(Guid meetingId, String title, String description, String location, DateTime scheduledFor) : base(meetingId) { var @event = new MeetingScheduledEvent { MeetingId = meetingId, Title = title, Description = description, Location = location, ScheduledFor = scheduledFor }; ApplyEvent(@event); }