/// <summary>
 /// Constructs a new Contribution From Assets calculator
 /// </summary>
 /// <param name="constants">Constants used in the calculation of Contribution From Assets</param>
 public AssetContributionCalculator(AssetContributionCalculatorConstants constants)
 {
     _constants = constants;
 }
예제 #2
0
        public static AssetContributionCalculatorConstants GetAssetContributionCalculatorConstants()
        {
            AssetContributionCalculatorConstants constants = new AssetContributionCalculatorConstants();

            constants.DependentParentAssetRate              = 0.12;
            constants.DependentStudentAssetRate             = 0.2;
            constants.IndependentWithDependentsAssetRate    = 0.07;
            constants.IndependentWithoutDependentsAssetRate = 0.2;

            constants.AssetProtectionAllowanceLowestAge = 25;
            constants.MarriedAssetProtectionAllowances  = new[]
            {
                0,
                300,
                700,
                1000,
                1300,
                1600,
                2000,
                2300,
                2600,
                2900,
                3300,
                3600,
                3900,
                4200,
                4600,
                4900,
                5100,
                5200,
                5300,
                5400,
                5500,
                5700,
                5800,
                6000,
                6100,
                6300,
                6400,
                6600,
                6800,
                6900,
                7100,
                7300,
                7500,
                7700,
                7900,
                8200,
                8400,
                8600,
                8900,
                9200,
                9400
            };
            constants.SingleAssetProtectionAllowances = new[]
            {
                0,
                100,
                200,
                300,
                500,
                600,
                700,
                800,
                900,
                1000,
                1100,
                1200,
                1400,
                1500,
                1600,
                1700,
                1700,
                1700,
                1800,
                1800,
                1900,
                1900,
                1900,
                2000,
                2000,
                2100,
                2100,
                2200,
                2200,
                2300,
                2300,
                2400,
                2500,
                2500,
                2600,
                2700,
                2700,
                2800,
                2900,
                2900,
                3000
            };

            constants.BusinessFarmNetWorthAdjustmentRanges   = new[] { 1, 135000, 410000, 680000 };
            constants.BusinessFarmNetWorthAdjustmentBases    = new[] { 0, 54000, 191500, 353500 };
            constants.BusinessFarmNetWorthAdjustmentPercents = new double[] { 40, 50, 60, 100 };

            return(constants);
        }
예제 #3
0
        public void Init()
        {
            AssetContributionCalculatorConstants constants = TestConstantsFactory.GetAssetContributionCalculatorConstants();

            _calculator = new AssetContributionCalculator(constants);
        }