public Customer(Personnummer ssn, Name name) { Id = Guid.NewGuid(); SSN = ssn; Name = name; Accounts = new AccountCollection(); }
public static Customer LoadFromDetails(Guid id, Name name, Personnummer ssn, AccountCollection accounts) { Customer customer = new Customer(); customer.Id = id; customer.Name = name; customer.SSN = ssn; customer.Accounts = accounts; return(customer); }