Example #1
0
 internal static MeetingGroupMember CreateNew(
     MeetingGroupId meetingGroupId,
     MemberId memberId,
     MeetingGroupMemberRole role)
 {
     return(new MeetingGroupMember(meetingGroupId, memberId, role));
 }
Example #2
0
        public MeetingGroupMember(
            MeetingGroupId meetingGroupId,
            MemberId memberId,
            MeetingGroupMemberRole role)
        {
            this.MeetingGroupId = meetingGroupId;
            this.MemberId       = memberId;
            this._role          = role;
            this.JoinedDate     = DateTime.UtcNow;
            this._isActive      = true;

            this.AddDomainEvent(new NewMeetingGroupMemberJoinedDomainEvent(this.MeetingGroupId, this.MemberId, this._role));
        }
Example #3
0
        private MeetingGroupMember(
            MeetingGroupId meetingGroupId,
            MemberId memberId,
            MeetingGroupMemberRole role)
        {
            this.MeetingGroupId = meetingGroupId;
            this.MemberId       = memberId;
            this._role          = role;
            this.JoinedDate     = SystemClock.Now;
            this._isActive      = true;

            this.AddDomainEvent(new NewMeetingGroupMemberJoinedDomainEvent(this.MeetingGroupId, this.MemberId, this._role));
        }