Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }