Esempio n. 1
0
 private Expectations(string summary, string description, string language, LessonSchedule schedule)
 {
     Summary     = summary;
     Description = description;
     Language    = language;
     Schedule    = schedule;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static Expectations Of(string summary, string description, string language, LessonSchedule schedule)
 {
     return(new Expectations(summary, description, language, schedule));
 }