コード例 #1
0
        public void EditGeneralAttributes(string name, string description, MeetingGroupLocation location)
        {
            this._name        = name;
            this._description = description;
            this._location    = location;

            this.AddDomainEvent(new MeetingGroupGeneralAttributesEditedDomainEvent(this._name, this._description, this._location));
        }
コード例 #2
0
 internal static MeetingGroup CreateBasedOnProposal(
     MeetingGroupProposalId meetingGroupProposalId,
     string name,
     string description,
     MeetingGroupLocation location, MemberId creatorId)
 {
     return(new MeetingGroup(meetingGroupProposalId, name, description, location, creatorId));
 }
コード例 #3
0
        private MeetingGroup(MeetingGroupProposalId meetingGroupProposalId, string name, string description, MeetingGroupLocation location, MemberId creatorId)
        {
            this.Id           = new MeetingGroupId(meetingGroupProposalId.Value);
            this._name        = name;
            this._description = description;
            this._creatorId   = creatorId;
            this._location    = location;
            this._createDate  = SystemClock.Now;

            this.AddDomainEvent(new MeetingGroupCreatedDomainEvent(this.Id, creatorId));

            this._members = new List <MeetingGroupMember>();
            this._members.Add(MeetingGroupMember.CreateNew(this.Id, this._creatorId, MeetingGroupMemberRole.Organizer));
        }