internal static MeetingGroupMember CreateNew( MeetingGroupId meetingGroupId, MemberId memberId, MeetingGroupMemberRole role) { return(new MeetingGroupMember(meetingGroupId, memberId, role)); }
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)); }
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)); }
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)); }