|
using System.Collections.Generic;
namespace BusinessRules.Evolution_Five
{
/// <summary>
/// USA tax band generator object to contruct tax bands.
/// </summary>
internal class UsaTaxBandGenerator : TaxBandGenerator
{
#region Methods
/// <summary>
/// Creates the tax bands.
/// </summary>
/// <remarks>Factory Method that constructs the tax band collection.</remarks>
public override List<TaxBand> CreateTaxBands()
{
List<TaxBand> taxBands = new List<TaxBand>();
taxBands.Add(new TaxBand(0.0, 7550.99, 0.10));
taxBands.Add(new TaxBand(7551.00, 30650.99, 0.15));
taxBands.Add(new TaxBand(30651.00, 74200.99, 0.25));
taxBands.Add(new TaxBand(74201.00, 154800.99, 0.28));
taxBands.Add(new TaxBand(154801.00, 336550.99, 0.33));
taxBands.Add(new TaxBand(336551.00, double.MaxValue, 0.35));
return taxBands;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.