コード例 #1
0
ファイル: Account.cs プロジェクト: vinodkumaar/AnujBank
 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;
 }