public string Publish(MeetupPublishCommand command) { var aggregate = new MeetupAggregate(command.MeetupId); aggregate.Publish(command); return(aggregate.State.ToString()); }
public static void GivenPublishedMeetup(Action <MeetupAggregate> when, Action <MeetupAggregate> then) { var meetup = new MeetupAggregate(id, title, location); meetup.UpdateNumberOfSeats(seats); meetup.Publish(); when(meetup); then(meetup); }