Beispiel #1
0
 public static MoneyValue Of(MoneyValue value)
 {
     return(new MoneyValue(value.Value, value.Currency));
 }
Beispiel #2
0
 public static MoneyValue Sum <T>(this IEnumerable <T> source, Func <T, MoneyValue> selector)
 {
     return(MoneyValue.Of(source.Select(selector).Aggregate((x, y) => x + y)));
 }
 public MoneyValueOperationMustBePerformedOnTheSameCurrencyRule(MoneyValue left, MoneyValue right)
 {
     _left  = left;
     _right = right;
 }