internal static MeetingGroup CreateBasedOnProposal(
     MeetingGroupProposalId meetingGroupProposalId,
     string name,
     string description,
     MeetingGroupLocation location, MemberId creatorId)
 {
     return(new MeetingGroup(meetingGroupProposalId, name, description, location, creatorId));
 }
        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));
        }
Пример #3
0
 public MeetingGroupProposedDomainEvent(
     MeetingGroupProposalId id,
     string name,
     string description,
     MemberId proposalUserId,
     DateTime proposalDate,
     string locationCity,
     string locationCountryCode)
 {
     Id                       = id;
     this.Name                = name;
     this.Description         = description;
     this.LocationCity        = locationCity;
     this.LocationCountryCode = locationCountryCode;
     this.ProposalDate        = proposalDate;
     this.ProposalUserId      = proposalUserId;
 }
Пример #4
0
 public MeetingGroupProposalAcceptedDomainEvent(MeetingGroupProposalId meetingGroupProposalId)
 {
     MeetingGroupProposalId = meetingGroupProposalId;
 }
Пример #5
0
 public async Task <MeetingGroupProposal> GetByIdAsync(MeetingGroupProposalId meetingGroupProposalId)
 {
     return(await _context.MeetingGroupProposals.FirstOrDefaultAsync(x => x.Id == meetingGroupProposalId));
 }
 internal CreateNewMeetingGroupCommand(Guid id, MeetingGroupProposalId meetingGroupProposalId) : base(id)
 {
     this.MeetingGroupProposalId = meetingGroupProposalId;
 }
Пример #7
0
 internal MeetingGroupProposalRejectedDomainEvent(MeetingGroupProposalId meetingGroupProposalId)
 {
     MeetingGroupProposalId = meetingGroupProposalId;
 }
 public MeetingGroupProposedNotification(MeetingGroupProposedDomainEvent domainEvent, Guid id) : base(domainEvent, id)
 {
     this.MeetingGroupProposalId = domainEvent.Id;
 }
Пример #9
0
 public MeetingGroupProposalAcceptedNotification(MeetingGroupProposalAcceptedDomainEvent domainEvent) : base(domainEvent)
 {
     this.MeetingGroupProposalId = domainEvent.MeetingGroupProposalId;
 }
Пример #10
0
 internal MeetingGroupProposalVerificationRequestedDomainEvent(MeetingGroupProposalId id)
 {
     Id = id;
 }
 internal MeetingGroupProposalVerificationRequestedDomainEvent(MeetingGroupProposalId meetingGroupProposalId)
 {
     MeetingGroupProposalId = meetingGroupProposalId;
 }