public void CalulateInterast()
        {
            InterestService interestService = new InterestService();
            var             result          = interestService.Calc(100, 5);

            Assert.Equal <decimal>(Convert.ToDecimal("105,10"), result);
        }
Пример #2
0
        public void CalcInterest()
        {
            var interest   = 0.01;
            var startValue = 100;
            var months     = 5;
            var expValue   = "105,10";

            var calc = _interestService.Calc(interest, startValue, months);

            Assert.Equal(expValue, calc);
        }
        public async Task <string> Get(double valorinicial, int meses)
        {
            var interest = await _interestService.GetInterest("https://localhost:44332/taxajuros");

            return(_interestService.Calc(interest, valorinicial, meses));
        }