public void TestMethodCalculate() { ICreditInfo _creditInfo = _serviceContainer.GetInstance <ICreditInfo>(); _creditInfo.Calculate(_сreditData._simplePaymentsInMonth36Sum10000Rate12); //Assert.AreEqual(_creditInfo.Calculate(_сreditData._simplePaymentsInMonth36Sum10000Rate12), 1); }
public IActionResult Index(BankCreditData bankCreditData) { var result = _creditInfo.Calculate(bankCreditData); _payinfo = new Converter().PaytablesConverter(result); HttpContext.Session.SetJson("Payinfo", _payinfo); return(View()); }