< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.CreateRunResponse
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CreateRunResponse.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CreateRunResponse.Serialization.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:60
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_RunId()-0%100%
DeserializeCreateRunResponse(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CreateRunResponse.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.Analytics.Synapse.Artifacts.Models
 11{
 12    /// <summary> Response body with a run identifier. </summary>
 13    public partial class CreateRunResponse
 14    {
 15        /// <summary> Initializes a new instance of CreateRunResponse. </summary>
 16        /// <param name="runId"> Identifier of a run. </param>
 17        /// <exception cref="ArgumentNullException"> <paramref name="runId"/> is null. </exception>
 018        internal CreateRunResponse(string runId)
 19        {
 020            if (runId == null)
 21            {
 022                throw new ArgumentNullException(nameof(runId));
 23            }
 24
 025            RunId = runId;
 026        }
 27
 28        /// <summary> Identifier of a run. </summary>
 029        public string RunId { get; }
 30    }
 31}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CreateRunResponse.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class CreateRunResponse
 14    {
 15        internal static CreateRunResponse DeserializeCreateRunResponse(JsonElement element)
 16        {
 017            string runId = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("runId"))
 21                {
 022                    runId = property.Value.GetString();
 23                    continue;
 24                }
 25            }
 026            return new CreateRunResponse(runId);
 27        }
 28    }
 29}