예제 #1
0
        public void GetItemIdReturnsGivenEntityRefundId()
        {
            const int expectedItemId        = 29;
            var       refundOrderItemEntity = new RefundOrderItemEntity(0, expectedItemId);

            long itemId = _refundOrderItemTraits.GetItemId(refundOrderItemEntity);

            Assert.AreEqual(expectedItemId, itemId, "GetItemId returned incorrect ID.");
        }
예제 #2
0
        public void GetItemIdReturnsGivenEntityTestId()
        {
            const int expectedItemId      = 29;
            var       testOrderItemEntity = new EventTestOrderItemEntity(0, expectedItemId);

            long itemId = _testOrderItemTraits.GetItemId(testOrderItemEntity);

            Assert.AreEqual(expectedItemId, itemId, "GetItemId returned incorrect ID.");
        }
        public void GetItemIdReturnsGivenEntityGiftCertificateId()
        {
            const int expectedItemId = 29;
            var       giftCertificateOrderItemEntity = new GiftCertificateOrderItemEntity(0, expectedItemId);

            long itemId = _giftCertificateOrderItemTraits.GetItemId(giftCertificateOrderItemEntity);

            Assert.AreEqual(expectedItemId, itemId, "GetItemId returned incorrect ID.");
        }