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

            customer.Id        = id;
            customer.Name      = name;
            customer.Aadhar    = aadhar;
            customer._accounts = accounts;
            return(customer);
        }