private MeetingGroupPaymentRegister(MeetingGroupId meetingGroupId) { this.Id = new MeetingGroupPaymentRegisterId(meetingGroupId.Value); _createDate = DateTime.UtcNow; _payments = new List <MeetingGroupPayment>(); this.AddDomainEvent(new MeetingGroupPaymentRegisterCreatedDomainEvent(this.Id)); }
public static MeetingGroupPaymentRegister CreatePaymentScheduleForMeetingGroup(MeetingGroupId meetingGroupId) { return(new MeetingGroupPaymentRegister(meetingGroupId)); }