public void TestDeleteProvisionningRules()
        {
            ProvisioningRuleManager provisioningRuleManager = (ProvisioningRuleManager)container["ProvisioningRuleManager"];
            SqlTransaction          transaction             = provisioningRuleManager.GetConnection().BeginTransaction();

            provisioningRuleManager.DeleteAllProvisioningRules(transaction);
            transaction.Commit();

            List <ProvisioningRate> list = provisioningRuleManager.SelectAllProvisioningRates();

            Assert.AreEqual(0, list.Count);
        }
        public void SelectProvisioningRates()
        {
            ProvisioningRuleManager provisioningRuleManager = (ProvisioningRuleManager)container["ProvisioningRuleManager"];
            List <ProvisioningRate> list = provisioningRuleManager.SelectAllProvisioningRates();

            Assert.AreEqual(7, list.Count);

            _AssertProvisioningRule(list[0], 1, 0, 0, 0.02, 0, 0);
            _AssertProvisioningRule(list[1], 2, 1, 30, 0.1, 0, 0);
            _AssertProvisioningRule(list[2], 3, 31, 60, 0.25, 0, 0);
            _AssertProvisioningRule(list[3], 4, 61, 90, 0.5, 0, 0);
            _AssertProvisioningRule(list[4], 5, 91, 180, 0.75, 0, 0);
            _AssertProvisioningRule(list[5], 6, 181, 365, 1, 0, 0);
            _AssertProvisioningRule(list[6], 7, 366, 99999, 1, 0, 0);
        }
 public void CheckGeneralSettings()
 {
     ProvisionTable.GetInstance(_user).ProvisioningRates = _provisionningRuleManager.SelectAllProvisioningRates();
     LoanScaleTable.GetInstance(_user).LoanScaleRates    = new ArrayList();
     _loanScaleManager.SelectLoanScales();
 }
        private void FillProvisioningRule()
        {
            var table = ProvisionTable.GetInstance(_user);

            table.ProvisioningRates = _provisioningRuleManager.SelectAllProvisioningRates();
        }