public void When(ProposalAccepted proposalAccepted) { if (Progress == ProposalProgress.TutorAssigned) { Progress = ProposalProgress.Accepted; } }
public void When(ProposalDeclined proposalDeclined) { if (Progress == ProposalProgress.TutorAssigned) { Progress = ProposalProgress.Declined; } }
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; }