< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Age()-0%100%
get_Interface()-0%100%
get_IpAddress()-0%100%
get_MacAddress()-0%100%
DeserializeExpressRouteCircuitArpTable(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitArpTable.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> The ARP table associated with the ExpressRouteCircuit. </summary>
 11    public partial class ExpressRouteCircuitArpTable
 12    {
 13        /// <summary> Initializes a new instance of ExpressRouteCircuitArpTable. </summary>
 014        internal ExpressRouteCircuitArpTable()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ExpressRouteCircuitArpTable. </summary>
 19        /// <param name="age"> Entry age in minutes. </param>
 20        /// <param name="interface"> Interface address. </param>
 21        /// <param name="ipAddress"> The IP address. </param>
 22        /// <param name="macAddress"> The MAC address. </param>
 023        internal ExpressRouteCircuitArpTable(int? age, string @interface, string ipAddress, string macAddress)
 24        {
 025            Age = age;
 026            Interface = @interface;
 027            IpAddress = ipAddress;
 028            MacAddress = macAddress;
 029        }
 30
 31        /// <summary> Entry age in minutes. </summary>
 032        public int? Age { get; }
 33        /// <summary> Interface address. </summary>
 034        public string Interface { get; }
 35        /// <summary> The IP address. </summary>
 036        public string IpAddress { get; }
 37        /// <summary> The MAC address. </summary>
 038        public string MacAddress { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitArpTable.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 ExpressRouteCircuitArpTable
 14    {
 15        internal static ExpressRouteCircuitArpTable DeserializeExpressRouteCircuitArpTable(JsonElement element)
 16        {
 017            int? age = default;
 018            string @interface = default;
 019            string ipAddress = default;
 020            string macAddress = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("age"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    age = property.Value.GetInt32();
 030                    continue;
 31                }
 032                if (property.NameEquals("interface"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    @interface = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("ipAddress"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    ipAddress = property.Value.GetString();
 048                    continue;
 49                }
 050                if (property.NameEquals("macAddress"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    macAddress = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new ExpressRouteCircuitArpTable(age, @interface, ipAddress, macAddress);
 61        }
 62    }
 63}