public void UT_Calculate_Fix_Cuote(double totalLoan, double rate, int periodsNumber, double fixCoute)
        {
            var result  = FinantialFunctions.CalculateFixCuote(totalLoan, rate, periodsNumber);
            var rounded = Math.Round(result, 2);

            Assert.Equal(fixCoute, rounded);
        }
 public void UT_Calculate_Amortization_table(double totalLoan, double rate, int periodsNumber, double fixCoute)
 {
     try
     {
         var result  = FinantialFunctions.CalculateFixCuote(totalLoan, rate, periodsNumber);
         var rounded = Math.Round(result, 2);
         Assert.Equal(fixCoute, rounded);
         AmortizationTable table = new AmortizationTable();
         table = FinantialFunctions.CalculateAmortizationTable(totalLoan, rate, 1, rounded);
         Trace.TraceInformation(table.PrintString());
     }
     catch (Exception ex)
     {
         Assert.True(false, ex.Message);
     }
 }