Esempio n. 1
0
 public MeetingGroupMemberJoinedDomainEvent(
     Guid meetingGroupId,
     Guid memberId,
     MeetingGroupMemberRole role)
 {
     MeetingGroupId = meetingGroupId;
     MemberId       = memberId;
     Role           = role;
 }
Esempio n. 2
0
        internal MeetingGroupMember(Guid memberGroupId, Guid memberId, MeetingGroupMemberRole role)
        {
            this.MemberId  = memberId;
            _memberGroupId = memberGroupId;
            _role          = role;

            this.AddDomainEvent(new MeetingGroupMemberJoinedDomainEvent(_memberGroupId,
                                                                        this.MemberId,
                                                                        _role));
        }
Esempio n. 3
0
        public MeetingGroup(
            string name,
            string description,
            string city,
            string countryCode,
            Guid creatorId)
        {
            this.Id      = Guid.NewGuid();
            _name        = name;
            _description = description;
            _city        = city;
            _countryCode = countryCode;

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

            _members = new List <MeetingGroupMember>();

            _members.Add(new MeetingGroupMember(this.Id, creatorId, MeetingGroupMemberRole.Organizer()));
        }
Esempio n. 4
0
 public void JoinMember(Guid memberId, MeetingGroupMemberRole role)
 {
     _members.Add(new MeetingGroupMember(this.Id, memberId, role));
 }