Пример #1
0
 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);
 }
Пример #2
0
        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);
        }