/// <summary>
        /// Deserializes the given json into an Hydra OM Pipeline instance, by mocking a get request to
        /// exercise the client's deserialization logic.
        /// </summary>
        /// <param name="json">The JSON string to deserialize.</param>
        /// <returns></returns>
        internal static Models.Pipeline DeserializeInternalPipelineJson(string json)
        {
            var handler = new MockResourceProviderDelegatingHandler()
            {
                Json = json
            };

            var    client            = GetFakeClient(handler);
            string resourceGroupName = Guid.NewGuid().ToString("D");
            string dataFactoryName   = Guid.NewGuid().ToString("D");
            string pipelineName      = Guid.NewGuid().ToString("D");

            Models.PipelineGetResponse getResponse = client.Pipelines.Get(resourceGroupName, dataFactoryName, pipelineName);
            return(getResponse.Pipeline);
        }
        public async Task <PipelineGetResponse> GetAsync(
            string resourceGroupName,
            string dataFactoryName,
            string dataPipelineName,
            CancellationToken cancellationToken)
        {
            Core.Models.PipelineGetResponse response =
                await this.Client.InternalClient.Pipelines.GetAsync(
                    resourceGroupName,
                    dataFactoryName,
                    dataPipelineName,
                    cancellationToken);

            return(new PipelineGetResponse(response, this.Client));
        }