Esempio n. 1
0
 public Customer(IdentityId identityId, Name name)
 {
     Id         = Guid.NewGuid();
     Name       = name;
     IdentityId = identityId;
     _accounts  = new AccountCollection();
 }
Esempio n. 2
0
        public static Customer Load(Guid id, Name name, IdentityId identityId, AccountCollection accounts)
        {
            Customer customer = new Customer();

            customer.Id         = id;
            customer.Name       = name;
            customer.IdentityId = identityId;
            customer._accounts  = accounts;

            return(customer);
        }
 public Customer()
 {
     Accounts = new AccountCollection();
 }