public async Task CreateCurlStubs_ShouldCreateStubs(bool doNotCreateStub)
    {
        // Arrange
        const string commands = "curl commands;";
        var          client   = new HttPlaceholderClient(CreateHttpClient(mock => mock
                                                                          .When(HttpMethod.Post, $"{BaseUrl}ph-api/import/curl")
                                                                          .WithQueryString("doNotCreateStub", doNotCreateStub.ToString())
                                                                          .WithQueryString("tenant", "tenant1")
                                                                          .WithContent(commands)
                                                                          .Respond("application/json", CreateCurlStubsResult)));

        // Act
        var result = (await client.CreateCurlStubsAsync(commands, doNotCreateStub, "tenant1")).ToArray();

        // Assert
        Assert.AreEqual(1, result.Length);
        Assert.AreEqual("generated-7ed80fbc7e90f8a6b40acb2505aff4c7", result[0].Stub.Id);
        Assert.AreEqual("POST", result[0].Stub.Conditions.Method);
    }
    public async Task CreateCurlStubs_ExceptionInRequest_ShouldThrowHttPlaceholderClientException()
    {
        // Arrange
        const string commands = "curl commands;";
        var          client   = new HttPlaceholderClient(CreateHttpClient(mock => mock
                                                                          .When(HttpMethod.Post, $"{BaseUrl}ph-api/import/curl")
                                                                          .WithQueryString("doNotCreateStub", "False")
                                                                          .WithQueryString("tenant", "tenant1")
                                                                          .Respond(HttpStatusCode.BadRequest, "text/plain", "Error occurred!")));

        // Act
        var exception =
            await Assert.ThrowsExceptionAsync <HttPlaceholderClientException>(() =>
                                                                              client.CreateCurlStubsAsync(commands, false, "tenant1"));

        // Assert
        Assert.AreEqual("Status code '400' returned by HttPlaceholder with message 'Error occurred!'",
                        exception.Message);
    }