public void TestConvertAmountToExternalCurrency() { _accountingServices = new OpenCBS.Services.Accounting.AccountingServices(DataUtil.TESTDB); OCurrency amount = 100; ExchangeRate rate = new ExchangeRate {Date = DateTime.Today, Rate = 3, Currency = new Currency {Id = 1}}; Assert.AreEqual(33.3333m, _accountingServices.ConvertAmountToExternalCurrency(amount, rate).Value); }
public void TestConvertAmountToExternalCurrency() { _accountingServices = new OpenCBS.Services.Accounting.AccountingServices(DataUtil.TESTDB); OCurrency amount = 100; ExchangeRate rate = new ExchangeRate { Date = DateTime.Today, Rate = 3, Currency = new Currency { Id = 1 } }; Assert.AreEqual(33.3333m, _accountingServices.ConvertAmountToExternalCurrency(amount, rate).Value); }