< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_AzureLocations()-0%100%
get_Country()-0%100%
get_State()-0%100%
get_City()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailableProvidersListParameters.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Constraints that determine the list of available Internet service providers. </summary>
 13    public partial class AvailableProvidersListParameters
 14    {
 15        /// <summary> Initializes a new instance of AvailableProvidersListParameters. </summary>
 016        public AvailableProvidersListParameters()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of AvailableProvidersListParameters. </summary>
 21        /// <param name="azureLocations"> A list of Azure regions. </param>
 22        /// <param name="country"> The country for available providers list. </param>
 23        /// <param name="state"> The state for available providers list. </param>
 24        /// <param name="city"> The city or town for available providers list. </param>
 025        internal AvailableProvidersListParameters(IList<string> azureLocations, string country, string state, string cit
 26        {
 027            AzureLocations = azureLocations;
 028            Country = country;
 029            State = state;
 030            City = city;
 031        }
 32
 33        /// <summary> A list of Azure regions. </summary>
 034        public IList<string> AzureLocations { get; set; }
 35        /// <summary> The country for available providers list. </summary>
 036        public string Country { get; set; }
 37        /// <summary> The state for available providers list. </summary>
 038        public string State { get; set; }
 39        /// <summary> The city or town for available providers list. </summary>
 040        public string City { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailableProvidersListParameters.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 AvailableProvidersListParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (AzureLocations != null)
 19            {
 020                writer.WritePropertyName("azureLocations");
 021                writer.WriteStartArray();
 022                foreach (var item in AzureLocations)
 23                {
 024                    writer.WriteStringValue(item);
 25                }
 026                writer.WriteEndArray();
 27            }
 028            if (Country != null)
 29            {
 030                writer.WritePropertyName("country");
 031                writer.WriteStringValue(Country);
 32            }
 033            if (State != null)
 34            {
 035                writer.WritePropertyName("state");
 036                writer.WriteStringValue(State);
 37            }
 038            if (City != null)
 39            {
 040                writer.WritePropertyName("city");
 041                writer.WriteStringValue(City);
 42            }
 043            writer.WriteEndObject();
 044        }
 45    }
 46}