public void When(ProposalSubmitted proposalSubmitted) { Id = Id.FromExisting(proposalSubmitted.ProposalId); Student = new Student(proposalSubmitted.StudentId); Expectations = Expectations.Of(proposalSubmitted.Summary, proposalSubmitted.Description, proposalSubmitted.Language, LessonSchedule.With(proposalSubmitted.StartDate, proposalSubmitted.EndDate, proposalSubmitted.Schedule)); Progress = ProposalProgress.Submitted; }
private void Project(ProposalSubmitted proposalSubmitted) { ProposalView.Views.Add( proposalSubmitted.ProposalId, new ProposalView( proposalSubmitted.ProposalId, proposalSubmitted.ClientId, proposalSubmitted.Summary, proposalSubmitted.Description, proposalSubmitted.CompletedBy, proposalSubmitted.CompletedBy, proposalSubmitted.Steps, proposalSubmitted.Price, proposalSubmitted.Price, new string[0])); }