< Summary

Class:Azure.ResourceManager.Network.Models.ConnectivityDestination
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectivityDestination.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectivityDestination.Serialization.cs
Covered lines:14
Uncovered lines:8
Coverable lines:22
Total lines:72
Line coverage:63.6% (14 of 22)
Covered branches:5
Total branches:6
Branch coverage:83.3% (5 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ResourceId()-0%100%
get_Address()-100%100%
get_Port()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-83.33%83.33%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectivityDestination.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> Parameters that define destination of connection. </summary>
 11    public partial class ConnectivityDestination
 12    {
 13        /// <summary> Initializes a new instance of ConnectivityDestination. </summary>
 414        public ConnectivityDestination()
 15        {
 416        }
 17
 18        /// <summary> Initializes a new instance of ConnectivityDestination. </summary>
 19        /// <param name="resourceId"> The ID of the resource to which a connection attempt will be made. </param>
 20        /// <param name="address"> The IP address or URI the resource to which a connection attempt will be made. </para
 21        /// <param name="port"> Port on which check connectivity will be performed. </param>
 022        internal ConnectivityDestination(string resourceId, string address, int? port)
 23        {
 024            ResourceId = resourceId;
 025            Address = address;
 026            Port = port;
 027        }
 28
 29        /// <summary> The ID of the resource to which a connection attempt will be made. </summary>
 030        public string ResourceId { get; set; }
 31        /// <summary> The IP address or URI the resource to which a connection attempt will be made. </summary>
 2032        public string Address { get; set; }
 33        /// <summary> Port on which check connectivity will be performed. </summary>
 2034        public int? Port { get; set; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectivityDestination.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 ConnectivityDestination : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (ResourceId != null)
 19            {
 020                writer.WritePropertyName("resourceId");
 021                writer.WriteStringValue(ResourceId);
 22            }
 823            if (Address != null)
 24            {
 825                writer.WritePropertyName("address");
 826                writer.WriteStringValue(Address);
 27            }
 828            if (Port != null)
 29            {
 830                writer.WritePropertyName("port");
 831                writer.WriteNumberValue(Port.Value);
 32            }
 833            writer.WriteEndObject();
 834        }
 35    }
 36}