< Summary

Class:Azure.ResourceManager.Resources.Models.PairedRegion
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\PairedRegion.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\PairedRegion.Serialization.cs
Covered lines:0
Uncovered lines:26
Coverable lines:26
Total lines:89
Line coverage:0% (0 of 26)
Covered branches:0
Total branches:14
Branch coverage:0% (0 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Id()-0%100%
get_SubscriptionId()-0%100%
DeserializePairedRegion(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\PairedRegion.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.Resources.Models
 9{
 10    /// <summary> Information regarding paired region. </summary>
 11    public partial class PairedRegion
 12    {
 13        /// <summary> Initializes a new instance of PairedRegion. </summary>
 014        internal PairedRegion()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of PairedRegion. </summary>
 19        /// <param name="name"> The name of the paired region. </param>
 20        /// <param name="id"> The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-000
 21        /// <param name="subscriptionId"> The subscription ID. </param>
 022        internal PairedRegion(string name, string id, string subscriptionId)
 23        {
 024            Name = name;
 025            Id = id;
 026            SubscriptionId = subscriptionId;
 027        }
 28
 29        /// <summary> The name of the paired region. </summary>
 030        public string Name { get; }
 31        /// <summary> The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000
 032        public string Id { get; }
 33        /// <summary> The subscription ID. </summary>
 034        public string SubscriptionId { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\PairedRegion.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.Resources.Models
 12{
 13    public partial class PairedRegion
 14    {
 15        internal static PairedRegion DeserializePairedRegion(JsonElement element)
 16        {
 017            string name = default;
 018            string id = default;
 019            string subscriptionId = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("name"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    name = property.Value.GetString();
 029                    continue;
 30                }
 031                if (property.NameEquals("id"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    id = property.Value.GetString();
 038                    continue;
 39                }
 040                if (property.NameEquals("subscriptionId"))
 41                {
 042                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 046                    subscriptionId = property.Value.GetString();
 47                    continue;
 48                }
 49            }
 050            return new PairedRegion(name, id, subscriptionId);
 51        }
 52    }
 53}