예제 #1
0
        // 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);
        }
예제 #2
0
        // 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);
        }