< Summary

Class:Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResult
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticResult.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticResult.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:75
Line coverage:0% (0 of 19)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Profile()-0%100%
get_NetworkSecurityGroupResult()-0%100%
DeserializeNetworkConfigurationDiagnosticResult(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticResult.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
 8namespace Azure.ResourceManager.Network.Models
 9{
 10    /// <summary> Network configuration diagnostic result corresponded to provided traffic query. </summary>
 11    public partial class NetworkConfigurationDiagnosticResult
 12    {
 13        /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticResult. </summary>
 014        internal NetworkConfigurationDiagnosticResult()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticResult. </summary>
 19        /// <param name="profile"> Network configuration diagnostic profile. </param>
 20        /// <param name="networkSecurityGroupResult"> Network security group result. </param>
 021        internal NetworkConfigurationDiagnosticResult(NetworkConfigurationDiagnosticProfile profile, NetworkSecurityGrou
 22        {
 023            Profile = profile;
 024            NetworkSecurityGroupResult = networkSecurityGroupResult;
 025        }
 26
 27        /// <summary> Network configuration diagnostic profile. </summary>
 028        public NetworkConfigurationDiagnosticProfile Profile { get; }
 29        /// <summary> Network security group result. </summary>
 030        public NetworkSecurityGroupResult NetworkSecurityGroupResult { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticResult.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.ResourceManager.Network.Models
 12{
 13    public partial class NetworkConfigurationDiagnosticResult
 14    {
 15        internal static NetworkConfigurationDiagnosticResult DeserializeNetworkConfigurationDiagnosticResult(JsonElement
 16        {
 017            NetworkConfigurationDiagnosticProfile profile = default;
 018            NetworkSecurityGroupResult networkSecurityGroupResult = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("profile"))
 22                {
 023                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 027                    profile = NetworkConfigurationDiagnosticProfile.DeserializeNetworkConfigurationDiagnosticProfile(pro
 028                    continue;
 29                }
 030                if (property.NameEquals("networkSecurityGroupResult"))
 31                {
 032                    if (property.Value.ValueKind == JsonValueKind.Null)
 33                    {
 34                        continue;
 35                    }
 036                    networkSecurityGroupResult = NetworkSecurityGroupResult.DeserializeNetworkSecurityGroupResult(proper
 37                    continue;
 38                }
 39            }
 040            return new NetworkConfigurationDiagnosticResult(profile, networkSecurityGroupResult);
 41        }
 42    }
 43}