Beispiel #1
0
 public void TestAddExoticInstallmentInExoticProductWhenInstallmentIsNull()
 {
     ExoticInstallmentsTable product = new ExoticInstallmentsTable();
     ExoticInstallment exoticInstallment = new ExoticInstallment();
     exoticInstallment.InterestCoeff = null;
     exoticInstallment.PrincipalCoeff = 0;
     LoanProductManager productManager = new LoanProductManager(DataUtil.TESTDB);
     ProductServices productServices = new ProductServices(productManager);
     productServices.AddExoticInstallmentInExoticProduct(product, exoticInstallment, 1, false);
 }
Beispiel #2
0
 public void TestAddExoticInstallmentInExoticProductWhenInstallmentIsNotNull()
 {
     ExoticInstallmentsTable product = new ExoticInstallmentsTable();
     ExoticInstallment exoticInstallment = new ExoticInstallment();
     exoticInstallment.InterestCoeff = 0;
     exoticInstallment.PrincipalCoeff = 0;
     int number = product.GetNumberOfInstallments;
     ProductServices productServices = new ProductServices(new User {Id = 1});
     Assert.AreEqual(number + 1,
         productServices.AddExoticInstallmentInExoticProduct(product, exoticInstallment, 1, false).GetNumberOfInstallments);
 }