public static string ParseStr(MoneyValue amountStr) { //var splittedAmount = amountStr.Split(' '); //string currency = splittedAmount[1]; //Decimal value = Decimal.Parse(splittedAmount[0]); return("a"); }
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 static MoneyValue Of(MoneyValue value) { return(new MoneyValue(value.Value, value.Currency)); }
public MoneyValueOperationMustBePerformedOnTheSameCurrencyRule(MoneyValue left, MoneyValue right) { _left = left; _right = right; }