コード例 #1
0
        private async Task <ErrorResponse> EndToEndTestWithError(string id, string leftData, string rightData)
        {
            await SetupData(id, leftData, rightData);

            var diffResponse = await _client.GetAsync(IntegrationTestsHelper.GetDiffUrl(id));

            return(JsonConvert.DeserializeObject <ErrorResponse>(await diffResponse.Content.ReadAsStringAsync()));
        }
コード例 #2
0
        private async Task <ComparisonResponse> CallDiff(string id)
        {
            var diffResponse = await _client.GetAsync(IntegrationTestsHelper.GetDiffUrl(id));

            return(JsonConvert.DeserializeObject <ComparisonResponse>(await diffResponse.Content.ReadAsStringAsync()));
        }