< Summary

Class:Azure.ResourceManager.Network.Models.TopologyParameters
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TopologyParameters.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TopologyParameters.Serialization.cs
Covered lines:11
Uncovered lines:11
Coverable lines:22
Total lines:72
Line coverage:50% (11 of 22)
Covered branches:4
Total branches:6
Branch coverage:66.6% (4 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_TargetResourceGroupName()-100%100%
get_TargetVirtualNetwork()-0%100%
get_TargetSubnet()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-66.67%66.67%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TopologyParameters.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 the representation of topology. </summary>
 11    public partial class TopologyParameters
 12    {
 13        /// <summary> Initializes a new instance of TopologyParameters. </summary>
 414        public TopologyParameters()
 15        {
 416        }
 17
 18        /// <summary> Initializes a new instance of TopologyParameters. </summary>
 19        /// <param name="targetResourceGroupName"> The name of the target resource group to perform topology on. </param
 20        /// <param name="targetVirtualNetwork"> The reference to the Virtual Network resource. </param>
 21        /// <param name="targetSubnet"> The reference to the Subnet resource. </param>
 022        internal TopologyParameters(string targetResourceGroupName, SubResource targetVirtualNetwork, SubResource target
 23        {
 024            TargetResourceGroupName = targetResourceGroupName;
 025            TargetVirtualNetwork = targetVirtualNetwork;
 026            TargetSubnet = targetSubnet;
 027        }
 28
 29        /// <summary> The name of the target resource group to perform topology on. </summary>
 1230        public string TargetResourceGroupName { get; set; }
 31        /// <summary> The reference to the Virtual Network resource. </summary>
 032        public SubResource TargetVirtualNetwork { get; set; }
 33        /// <summary> The reference to the Subnet resource. </summary>
 034        public SubResource TargetSubnet { get; set; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TopologyParameters.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 TopologyParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 417            writer.WriteStartObject();
 418            if (TargetResourceGroupName != null)
 19            {
 420                writer.WritePropertyName("targetResourceGroupName");
 421                writer.WriteStringValue(TargetResourceGroupName);
 22            }
 423            if (TargetVirtualNetwork != null)
 24            {
 025                writer.WritePropertyName("targetVirtualNetwork");
 026                writer.WriteObjectValue(TargetVirtualNetwork);
 27            }
 428            if (TargetSubnet != null)
 29            {
 030                writer.WritePropertyName("targetSubnet");
 031                writer.WriteObjectValue(TargetSubnet);
 32            }
 433            writer.WriteEndObject();
 434        }
 35    }
 36}