Example #1
0
        public async void GetExistingBasketItem()
        {
            _output.WriteLine($"BasketId: {fixture.TestBasketId}");
            _output.WriteLine($"BasketItemId: {fixture.TestItemId}");

            Basket basketFromRepo = await fixture.basketRepository.GetByIdAsync(fixture.TestBasketId);

            BasketItem firstItem = basketFromRepo.Items.FirstOrDefault();

            firstItem.Should().NotBeNull();
            firstItem.ProductItemId.Should().Be(fixture.TestItemId);
        }