public void Accept()
        {
            this.CheckRule(new MeetingGroupProposalCannotBeAcceptedMoreThanOnceRule(_status));

            _status = MeetingGroupProposalStatus.Accepted;

            this.AddDomainEvent(new MeetingGroupProposalAcceptedDomainEvent(this.Id));
        }
        private MeetingGroupProposal(
            string name,
            string description,
            MeetingGroupLocation location,
            MemberId proposalUserId)
        {
            Id              = new MeetingGroupProposalId(Guid.NewGuid());
            _name           = name;
            _description    = description;
            _location       = location;
            _proposalUserId = proposalUserId;
            _proposalDate   = SystemClock.Now;
            _status         = MeetingGroupProposalStatus.InVerification;

            this.AddDomainEvent(new MeetingGroupProposedDomainEvent(this.Id, _name, _description, proposalUserId, _proposalDate, _location.City, _location.CountryCode));
        }
Пример #3
0
        public void Accept()
        {
            _status = MeetingGroupProposalStatus.Accepted;

            this.AddDomainEvent(new MeetingGroupProposalAcceptedDomainEvent(this.Id));
        }