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)); }
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; }
public MeetingGroupProposalAcceptedDomainEvent(MeetingGroupProposalId meetingGroupProposalId) { MeetingGroupProposalId = meetingGroupProposalId; }
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; }
internal MeetingGroupProposalRejectedDomainEvent(MeetingGroupProposalId meetingGroupProposalId) { MeetingGroupProposalId = meetingGroupProposalId; }
public MeetingGroupProposedNotification(MeetingGroupProposedDomainEvent domainEvent, Guid id) : base(domainEvent, id) { this.MeetingGroupProposalId = domainEvent.Id; }
public MeetingGroupProposalAcceptedNotification(MeetingGroupProposalAcceptedDomainEvent domainEvent) : base(domainEvent) { this.MeetingGroupProposalId = domainEvent.MeetingGroupProposalId; }
internal MeetingGroupProposalVerificationRequestedDomainEvent(MeetingGroupProposalId id) { Id = id; }
internal MeetingGroupProposalVerificationRequestedDomainEvent(MeetingGroupProposalId meetingGroupProposalId) { MeetingGroupProposalId = meetingGroupProposalId; }