Exemplo n.º 1
0
        public void ShouldReturn100000WhenAmountEqualToOrAbove200000()
        {
            var calculator = new FlatValueCalculator();
            var result     = calculator.CalulateTax(200000);

            Assert.AreEqual(10000m, result);
        }
Exemplo n.º 2
0
        public void ShouldReturn0WhenAMountIs0()
        {
            var calculator = new FlatValueCalculator();
            var result     = calculator.CalulateTax(0);

            Assert.AreEqual(0m, result);
        }
Exemplo n.º 3
0
        public void ShouldReturn5PercentWhenAmountBelow200000()
        {
            var calculator = new FlatValueCalculator();
            var result     = calculator.CalulateTax(19999);

            Assert.AreEqual(999.95m, result);
        }
Exemplo n.º 4
0
 public void SetUp()
 {
     SetUpData();
     _calculator = new FlatValueCalculator(10000M, 200000M, 0.05M);
 }
Exemplo n.º 5
0
 public void SetUp()
 {
     _repository = new Mock <ITaxRateSettingRepository <FlatValueSetting> >();
     _calculator = new FlatValueCalculator(_repository.Object);
 }