< Summary

Class:Azure.ResourceManager.Network.Models.NetworkInterfaceLoadBalancerListResult
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceLoadBalancerListResult.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceLoadBalancerListResult.Serialization.cs
Covered lines:15
Uncovered lines:9
Coverable lines:24
Total lines:90
Line coverage:62.5% (15 of 24)
Covered branches:8
Total branches:14
Branch coverage:57.1% (8 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Value()-100%100%
get_NextLink()-100%100%
DeserializeNetworkInterfaceLoadBalancerListResult(...)-56.25%57.14%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceLoadBalancerListResult.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Response for list ip configurations API service call. </summary>
 13    public partial class NetworkInterfaceLoadBalancerListResult
 14    {
 15        /// <summary> Initializes a new instance of NetworkInterfaceLoadBalancerListResult. </summary>
 016        internal NetworkInterfaceLoadBalancerListResult()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of NetworkInterfaceLoadBalancerListResult. </summary>
 21        /// <param name="value"> A list of load balancers. </param>
 22        /// <param name="nextLink"> The URL to get the next set of results. </param>
 423        internal NetworkInterfaceLoadBalancerListResult(IReadOnlyList<LoadBalancer> value, string nextLink)
 24        {
 425            Value = value;
 426            NextLink = nextLink;
 427        }
 28
 29        /// <summary> A list of load balancers. </summary>
 430        public IReadOnlyList<LoadBalancer> Value { get; }
 31        /// <summary> The URL to get the next set of results. </summary>
 432        public string NextLink { get; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceLoadBalancerListResult.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    public partial class NetworkInterfaceLoadBalancerListResult
 15    {
 16        internal static NetworkInterfaceLoadBalancerListResult DeserializeNetworkInterfaceLoadBalancerListResult(JsonEle
 17        {
 418            IReadOnlyList<LoadBalancer> value = default;
 419            string nextLink = default;
 1620            foreach (var property in element.EnumerateObject())
 21            {
 422                if (property.NameEquals("value"))
 23                {
 424                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 428                    List<LoadBalancer> array = new List<LoadBalancer>();
 029                    foreach (var item in property.Value.EnumerateArray())
 30                    {
 031                        if (item.ValueKind == JsonValueKind.Null)
 32                        {
 033                            array.Add(null);
 34                        }
 35                        else
 36                        {
 037                            array.Add(LoadBalancer.DeserializeLoadBalancer(item));
 38                        }
 39                    }
 440                    value = array;
 441                    continue;
 42                }
 043                if (property.NameEquals("nextLink"))
 44                {
 045                    if (property.Value.ValueKind == JsonValueKind.Null)
 46                    {
 47                        continue;
 48                    }
 049                    nextLink = property.Value.GetString();
 50                    continue;
 51                }
 52            }
 453            return new NetworkInterfaceLoadBalancerListResult(value, nextLink);
 54        }
 55    }
 56}