Пример #1
0
 public Customer(Personnummer ssn, Name name)
 {
     Id       = Guid.NewGuid();
     SSN      = ssn;
     Name     = name;
     Accounts = new AccountCollection();
 }
Пример #2
0
        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);
        }