Ejemplo n.º 1
0
        public async Task Should_get_all_items_ordered()
        {
            // Arrange
            var propertyName = nameof(Item.Price);

            //Act
            var result = await _itemsController.GetAllOrdered(propertyName);

            //Assert
            await _itemService.Received(1).GetAllOrdered(propertyName);

            result.Should().BeOfType <OkObjectResult>();
        }