internal void Reject(UserId userId, string rejectReason) { _decision = MeetingGroupProposalDecision.RejectDecision(DateTime.UtcNow, userId, rejectReason); _status = _decision.GetStatusForDecision(); this.AddDomainEvent(new MeetingGroupProposalRejectedDomainEvent(this.Id)); }
public void Reject(UserId userId, string rejectReason) { this.CheckRule(new MeetingGroupProposalCanBeVerifiedOnceRule(_decision)); this.CheckRule(new MeetingGroupProposalRejectionMustHaveAReasonRule(rejectReason)); _decision = MeetingGroupProposalDecision.RejectDecision(DateTime.UtcNow, userId, rejectReason); _status = _decision.GetStatusForDecision(); this.AddDomainEvent(new MeetingGroupProposalRejectedDomainEvent(this.Id)); }