Ejemplo n.º 1
0
        private async Task StandartCheckJsonFile(string segmentOfConfig)
        {
            // Arrange
            JObject expected = ChecklistHelper.GetJson(checkingFile(segmentOfConfig));
            // Act
            RouteHelper testHelper = RouteHelper.Create();
            // Send a request asynchronously and continue when complete
            HttpResponseMessage response = await testHelper._client.GetAsync(checkingUrl(segmentOfConfig));

            // Assert
            StandartAnswerCheck(response);
            string  result = response.Content.ReadAsStringAsync().Result;
            JObject actual = JObject.Parse(result);

            AssertHelper.JsonEqual(expected, actual);
        }