public async Task ShouldUpdateTourList()
        {
            var listId = await SendAsync(new CreateTourListCommand
            {
                City    = "Al Ghanim",
                Country = "Qatar",
                About   = "Lorem Ipsum"
            });

            var command = new UpdateTourListCommand
            {
                Id      = listId,
                City    = "Doha",
                Country = "Qatar",
                About   = "Lorem Ipsum"
            };

            await SendAsync(command);

            var list = await FindAsync <TourList>(listId);

            list.City.Should().Be(command.City);
            list.Country.Should().Be(command.Country);
            list.About.Should().NotBeNull();
        }
        public async Task <ActionResult> Update(int id, UpdateTourListCommand command)
        {
            if (id != command.Id)
            {
                return(BadRequest());
            }

            await Mediator.Send(command);

            return(NoContent());
        }
        public void ShouldRequiredValidTourListId()
        {
            var command = new UpdateTourListCommand
            {
                Id      = 8,
                City    = "Caracas",
                Country = "Venezuela",
                About   = "Lorem Ipsum"
            };

            FluentActions.Invoking(() => SendAsync(command)).Should().Throw <NotFoundException>();
        }