public async Task Then_The_Query_Is_Sent_And_Data_Retrieved_And_Json_Returned(
            string searchTerm,
            GetLocationsQueryResponse response,
            [Frozen] Mock <IMediator> mediator,
            [Greedy] LocationsController controller)
        {
            //Arrange
            mediator.Setup(x =>
                           x.Send(It.Is <GetLocationsQuery>(c =>
                                                            c.SearchTerm.Equals(searchTerm)), It.IsAny <CancellationToken>()))
            .ReturnsAsync(response);

            //Act
            var actual = await controller.Locations(searchTerm);

            //Assert
            Assert.IsNotNull(actual);
            var actualResult = actual as JsonResult;

            Assert.IsNotNull(actualResult);
            var model = (LocationsViewModel)actualResult.Value;

            Assert.IsNotNull(model);
        }