Exemple #1
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);
        }
        public void DenyPricing(
            string proposalId,
            long suggestedPrice)
        {
            Proposal proposal = repository.ProposalOf(Id.FromExisting(proposalId));

            proposal.DenyPricing(suggestedPrice);

            repository.Save(proposal);
        }