public static MeetingGroupProposal CreateToVerify( Guid meetingGroupProposalId, string name, string description, MeetingGroupLocation location, UserId proposalUserId, DateTime proposalDate) { var meetingGroupProposal = new MeetingGroupProposal( new MeetingGroupProposalId(meetingGroupProposalId), name, description, location, proposalUserId, proposalDate); return(meetingGroupProposal); }
private MeetingGroupProposal( MeetingGroupProposalId id, string name, string description, MeetingGroupLocation location, UserId proposalUserId, DateTime proposalDate) { Id = id; _name = name; _description = description; _location = location; _proposalUserId = proposalUserId; _proposalDate = proposalDate; _status = MeetingGroupProposalStatus.ToVerify; _decision = MeetingGroupProposalDecision.NoDecision; this.AddDomainEvent(new MeetingGroupProposalVerificationRequestedDomainEvent(this.Id)); }