public void GenerateUrlGetPetByIdTest_Success()
        {
            var content  = File.ReadAllText("Assets/getPetById.json");
            var requests = JsonConvert.DeserializeObject <IList <HttpRequest> >(content);

            var urlGenerator = new Core.HttpRequestTools.HttpRequestUrlGenerator(requests.FirstOrDefault());

            _logger.LogInformation(urlGenerator.GetUrl());

            Assert.Equal("https://petstore3.swagger.io/api/v3/pet/{petId}", urlGenerator.GetUrl());
        }
        public void GenerateUrlGetAllBikesWithExampleTest_Success()
        {
            var content  = File.ReadAllText("Assets/GetAllBikes.json");
            var requests = JsonConvert.DeserializeObject <IList <HttpRequest> >(content);

            var urlGenerator = new Core.HttpRequestTools.HttpRequestUrlGenerator(requests.FirstOrDefault());

            _logger.LogInformation(urlGenerator.GetUrl());

            Assert.Equal("https://qatoolkitapi.azurewebsites.net/api/bicycles?api-version=1", urlGenerator.GetUrl());
        }
        public void GenerateUrlGetAllBikesWithReplacedVersioTest_Success()
        {
            var content  = File.ReadAllText("Assets/GetAllBikes.json");
            var requests = JsonConvert.DeserializeObject <IList <HttpRequest> >(content);

            var urlGenerator = new Core.HttpRequestTools.HttpRequestUrlGenerator(requests.FirstOrDefault(), options =>
            {
                options.AddReplacementValues(new Dictionary <string, object> {
                    {
                        "api-version",
                        "2"
                    }
                });
            });

            _logger.LogInformation(urlGenerator.GetUrl());

            Assert.Equal("https://qatoolkitapi.azurewebsites.net/api/bicycles?api-version=2", urlGenerator.GetUrl());
        }