예제 #1
0
 public Account(AccountId id, ClientId clientId)
 {
     if (clientId == null)
         throw new ArgumentException("You must provide client");
     AccountNo = id;
     ClientId = clientId;
 }
예제 #2
0
파일: AccountId.cs 프로젝트: habib/AnujBank
 public bool Equals(AccountId other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id == Id;
 }