Ejemplo n.º 1
0
    public void  When_coupon_is_BLACKFRI_discount_is_35()
    {
        IDiscountStrategy blackFriDiscount = new BlackfriDiscountStrategy();
        var discountCalculatorService      = new DiscountCalculatorService(blackFriDiscount);
        var order    = OrderFactory.CreateOrder_BLACKFRI();
        var discount = discountCalculatorService.CalculateDiscount(order);

        Assert.AreEqual(35d, discount);
    }