示例#1
0
        public void AssignTutor(string proposalId, string tutorId)
        {
            var proposal = _repository.ProposalOf(Id.FromExisting(proposalId));

            proposal.AssignTutor(new Tutor(tutorId));
            _repository.Save(proposal);
        }
示例#2
0
        public void DenyPricing(
            string proposalId,
            long suggestedPrice)
        {
            Proposal proposal = repository.ProposalOf(Id.FromExisting(proposalId));

            proposal.DenyPricing(suggestedPrice);

            repository.Save(proposal);
        }