public async Task Search_WhenRequestFails_ThrowsException()
        {
            // Arrange
            var exception = new ApiException(HttpStatusCode.BadRequest, null);

            _housingSearchUseCaseMock
            .Setup(x => x.ExecuteAsync(It.IsAny <SearchForPropertiesModel>()))
            .ThrowsAsync(exception);

            var query = _fixture.Create <SearchForPropertiesRequest>();

            // Act
            Func <Task> func = async() => await _classUnderTest.Search(query);

            // Assert
            await func.Should().ThrowAsync <ApiException>();
        }