public void ShouldInitialiseDiscountPercent()
            {
                DiscountPercent discountPercent = new DiscountPercentFaker().Generate();

                PieAndChipsMealDealDiscount sut = new PieAndChipsMealDealDiscount(discountPercent);

                sut.DiscountPercent.Should().Be(discountPercent);
            }
Ejemplo n.º 2
0
            public void ShouldInitialiseDiscountPercent(
                FakeClock fakeClock)
            {
                DiscountPercent discountPercent = new DiscountPercentFaker().Generate();

                PieExpiryDiscount sut = new PieExpiryDiscount(fakeClock, discountPercent);

                sut.DiscountPercent.Should().Be(discountPercent);
            }