Ejemplo n.º 1
0
        public Account(AccountId id, string holder)
        {
            if (holder.Trim().Length == 0)
                throw new ArgumentException("Account Holder name cannot be empty", nameof(holder));

            this.Id = id;
            this.Holder = holder;
        }
Ejemplo n.º 2
0
 public AccountOpened(AccountId id, string holder)
 {
     this.SortCode = id.SortCode;
     this.AccountNumber = id.AccountNumber;
     this.Holder = holder;
 }