public static Resume CreateNewResume( string firstName, string lastName) { var resume = new Resume(); var @event = new ResumeCreated(new ResumeId().ToString(), firstName, lastName); resume.Apply(@event); return(resume); }
public void On(ResumeCreated @event) { Id = new ResumeId(@event.Id); FirstName = @event.FirstName; LastName = @event.LastName; }