コード例 #1
0
ファイル: Transfer.cs プロジェクト: al-main/vabank
 protected Transfer(OperationCategory category, Currency currency, decimal amount)
     : base(category)
 {
     Argument.NotNull(currency, "currency");
     Argument.Satisfies(amount, x => x > 0, "amount", "Amount should be greater than zero.");
     Currency = currency;
     Amount = amount;
 }
コード例 #2
0
ファイル: Transfer.cs プロジェクト: al-main/vabank
 protected Transfer(OperationCategory category, Account from, Account to, Currency currency, decimal amount)
     : this(category, currency, amount)
 {
     Argument.NotNull(from, "from");
     Argument.NotNull(to, "to");
     From = from;
     To = to;
 }