Example #1
0
 public Customer(SSN ssn, Name name)
 {
     Id        = Guid.NewGuid();
     SSN       = ssn;
     Name      = name;
     _accounts = new AccountCollection();
 }
Example #2
0
        public static Customer Load(Guid id, Name name, SSN ssn, AccountCollection accounts)
        {
            Customer customer = new Customer();

            customer.Id        = id;
            customer.Name      = name;
            customer.SSN       = ssn;
            customer._accounts = accounts;
            return(customer);
        }