Beispiel #1
0
 public void Handle(CreateConferenceCommand createConferenceCommand)
 {
     Id          = createConferenceCommand.Id;
     AccessCode  = createConferenceCommand.AccessCode;
     Name        = createConferenceCommand.Name;
     Description = createConferenceCommand.Description;
     StartDate   = createConferenceCommand.StartDate;
     FinishDate  = createConferenceCommand.FinishDate;
     Organizer   = new ConferenceOrganizer(createConferenceCommand.OwnerName, createConferenceCommand.OwnerEmail);
     Venue       = createConferenceCommand.Venue;
 }
Beispiel #2
0
 public Conference(
     Guid id,
     string accessCode,
     string name,
     string description,
     DateTime startDate,
     DateTime finishDate,
     ConferenceOrganizer organizer,
     string venue)
 {
     Id          = id;
     AccessCode  = accessCode;
     Name        = name;
     Description = description;
     StartDate   = startDate;
     FinishDate  = finishDate;
     Organizer   = organizer;
     Venue       = venue;
 }