public void TestCalcCost_4()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 90m;
     decimal actual = strategy.CalcCost(10m, true, null, false);
     Assert.AreEqual(expected, actual);
 }
 public void TestCalcCost_5()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 48m;
     decimal actual = strategy.CalcCost(1.5m, false, 10, false);
     Assert.AreEqual(expected, actual);
 }
 public void TestCalcCost_8()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 95m;
     decimal actual = strategy.CalcCost(10m, false, 25, false);
     Assert.AreEqual(expected, actual);
 }
 public void TestCheckConstant_9()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 30m;
     decimal actual = OrderCostCalcStrategy.ONE_KILOMETER_HAULAGE_COST;
     Assert.AreEqual(expected, actual);
 }
 public void TestCheckConstant_8()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 50m;
     decimal actual = OrderCostCalcStrategy.MAX_ANIMAL_WEIGHT_COST;
     Assert.AreEqual(expected, actual);
 }
 public void TestCheckConstant_6()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 20m;
     decimal actual = OrderCostCalcStrategy.AVERAGE_ANIMAL_WEIGHT;
     Assert.AreEqual(expected, actual);
 }
 public void TestCheckConstant_5()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 2m;
     decimal actual = OrderCostCalcStrategy.TRACKING_COEFFICIENT;
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 8
0
        public void TestCalcCost_Validation_3()
        {
            IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();

            strategy.CalcCost(3, false, 71, false);
        }
 public void TestCheckConstant_1()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 15m;
     decimal actual = OrderCostCalcStrategy.ORDER_COST;
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 10
0
 public void TestCalcCost_Validation_6()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     strategy.CalcCost(3, false, 10, true);
 }
Exemplo n.º 11
0
 public void TestCalcCost_Validation_5()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     strategy.CalcCost(3, true, null, true);
 }
Exemplo n.º 12
0
 public void TestCalcCost_Validation_4()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     strategy.CalcCost(3, true, 50, false);
 }
Exemplo n.º 13
0
        public void TestCalcCost_Validation_5()
        {
            IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();

            strategy.CalcCost(3, true, null, true);
        }
Exemplo n.º 14
0
        public void TestCalcCost_Validation_4()
        {
            IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();

            strategy.CalcCost(3, true, 50, false);
        }
Exemplo n.º 15
0
 public void TestCheckConstant_3()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     decimal expected = 3m;
     decimal actual = OrderCostCalcStrategy.MIN_DISTANCE_COST;
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 16
0
 public void TestCalcCost_Validation_1()
 {
     IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();
     strategy.CalcCost(0, false, null, false);
 }
Exemplo n.º 17
0
        public void TestCalcCost_Validation_1()
        {
            IOrderCostCalcStrategy strategy = new OrderCostCalcStrategy();

            strategy.CalcCost(0, false, null, false);
        }