public void CheapHat_ExpensiveJumper_5PoundGiftVoucher()
        {
            //Given a basket with a cheap hat, an expensive jumper, and �off gift voucher
            Basket basket = new Basket()
            {
                Products = new List <Product>()
                {
                    _prodFactory.GenerateProduct(ProductEnum.CheapHat),
                    _prodFactory.GenerateProduct(ProductEnum.ExpensiveJumper)
                },
                GiftVouchers = new List <GiftVoucher>()
                {
                    (GiftVoucher)_vouchFactory.GenerateVoucher(VouchersEnum.Gift_5PoundOff)
                }
            };

            //When the total is calculated
            var actual = _basketCalculator.CalculateTotal(basket);

            //Then the total should be �.15, and no error message displayed
            Assert.AreEqual(60.15m, actual.FinalTotal);
            Assert.AreEqual(null, actual.ErrorMessage);
        }
 public Basket ProcessBasket([FromBody] Basket basket)
 {
     return(_basketCalculator.CalculateTotal(basket));
 }