private Expectations(string summary, string description, string language, LessonSchedule schedule) { Summary = summary; Description = description; Language = language; Schedule = schedule; }
public void Submit(string studentId, string summary, string description, string language, DateTime startDate, DateTime?endDate, List <DayOfWeek> schedule) { var proposal = Proposal.SubmitFor(Id.Unique(), new Student(studentId), Expectations.Of(summary, description, language, LessonSchedule.With(startDate, endDate, schedule))); _repository.Save(proposal); }
public static Expectations Of(string summary, string description, string language, LessonSchedule schedule) { return(new Expectations(summary, description, language, schedule)); }