private string ConcatenateHeader(string header, string header2, OverdraftTotalsResult totals) { CurrencyUtil cur = new CurrencyUtil(); var stringQuantity = cur.ToText(new CurrencyToTextParams() { CurrencyAmount = Math.Round(totals.Total, 2), CurrencyCode = "MXN", CurrencyName = "Pesos" }); return(header + "$ " + Math.Round(totals.Total, 2) + " " + stringQuantity + header2); }
public void GetTextFromQuantityNoDecimalPoint() { CurrencyUtil cur = new CurrencyUtil(); var txt = cur.ToText(new CurrencyToTextParams() { CurrencyAmount = 1200, CurrencyCode = "MXN", CurrencyName = "Pesos" }); Assert.NotEmpty(txt); Assert.Equal("Mil doscientos pesos 00/00 MXN", txt); }