< Summary

Class:Azure.ResourceManager.EventHubs.Models.AvailableCluster
Assembly:Azure.ResourceManager.EventHubs
File(s):C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.ResourceManager.EventHubs\src\Generated\Models\AvailableCluster.cs
C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.ResourceManager.EventHubs\src\Generated\Models\AvailableCluster.Serialization.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:61
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Location()-0%100%
DeserializeAvailableCluster(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.ResourceManager.EventHubs\src\Generated\Models\AvailableCluster.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.EventHubs.Models
 9{
 10    /// <summary> Pre-provisioned and readily available Event Hubs Cluster count per region. </summary>
 11    public partial class AvailableCluster
 12    {
 13        /// <summary> Initializes a new instance of AvailableCluster. </summary>
 014        internal AvailableCluster()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of AvailableCluster. </summary>
 19        /// <param name="location"> Location fo the Available Cluster. </param>
 020        internal AvailableCluster(string location)
 21        {
 022            Location = location;
 023        }
 24
 25        /// <summary> Location fo the Available Cluster. </summary>
 026        public string Location { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.ResourceManager.EventHubs\src\Generated\Models\AvailableCluster.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.EventHubs.Models
 12{
 13    public partial class AvailableCluster
 14    {
 15        internal static AvailableCluster DeserializeAvailableCluster(JsonElement element)
 16        {
 017            string location = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("location"))
 21                {
 022                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 026                    location = property.Value.GetString();
 27                    continue;
 28                }
 29            }
 030            return new AvailableCluster(location);
 31        }
 32    }
 33}