Exemple #1
0
        public void Voucher_WhenOfferVoucherInitialised_return_NotGiftVoucher()
        {
            GiftVoucher  giftVoucher = new GiftVoucher("YYY-YYY", 5);
            OfferVoucher expected    = new OfferVoucher("YYY-YYY", 5);

            expected.Should().NotBe(giftVoucher, "Gift vouchers have different rules to offer vouchers");
        }
Exemple #2
0
        public void Voucher_WhenOfferVoucherInitialised_return_NewVoucher()
        {
            OfferVoucher expected = new OfferVoucher("YYY-YYY", 5);

            expected.Should().BeEquivalentTo(OfferVoucher1);
        }