// DDD Patterns comment // This Member AggregateRoot's method "AddANewEmptyMemberAccount()" should be the only way to add Acconts to the Member public void AddANewEmptyMemberAccount(string name) { var account = new MemberAccount(0, "ACTIVE", name); _memberAccounts.Add(account); }
// DDD Patterns comment // This Member AggregateRoot's method "AddMemberAccount()" should be the only way to add Acconts to the Member public void AddMemberAccount(decimal balance, string status, string name) { var account = new MemberAccount(balance, status, name); _memberAccounts.Add(account); }