public Customer(IdentityId identityId, Name name) { Id = Guid.NewGuid(); Name = name; IdentityId = identityId; _accounts = new AccountCollection(); }
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(); }