< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreListResult
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreListResult.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreListResult.Serialization.cs
Covered lines:21
Uncovered lines:3
Coverable lines:24
Total lines:90
Line coverage:87.5% (21 of 24)
Covered branches:13
Total branches:14
Branch coverage:92.8% (13 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Value()-100%100%
get_NextLink()-100%100%
DeserializeConfigurationStoreListResult(...)-93.75%92.86%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreListResult.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.AppConfiguration.Models
 11{
 12    /// <summary> The result of a request to list configuration stores. </summary>
 13    public partial class ConfigurationStoreListResult
 14    {
 15        /// <summary> Initializes a new instance of ConfigurationStoreListResult. </summary>
 016        internal ConfigurationStoreListResult()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of ConfigurationStoreListResult. </summary>
 21        /// <param name="value"> The collection value. </param>
 22        /// <param name="nextLink"> The URI that can be used to request the next set of paged results. </param>
 1623        internal ConfigurationStoreListResult(IReadOnlyList<ConfigurationStore> value, string nextLink)
 24        {
 1625            Value = value;
 1626            NextLink = nextLink;
 1627        }
 28
 29        /// <summary> The collection value. </summary>
 1630        public IReadOnlyList<ConfigurationStore> Value { get; }
 31        /// <summary> The URI that can be used to request the next set of paged results. </summary>
 1632        public string NextLink { get; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreListResult.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.AppConfiguration.Models
 13{
 14    public partial class ConfigurationStoreListResult
 15    {
 16        internal static ConfigurationStoreListResult DeserializeConfigurationStoreListResult(JsonElement element)
 17        {
 1618            IReadOnlyList<ConfigurationStore> value = default;
 1619            string nextLink = default;
 9620            foreach (var property in element.EnumerateObject())
 21            {
 3222                if (property.NameEquals("value"))
 23                {
 1624                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 1628                    List<ConfigurationStore> array = new List<ConfigurationStore>();
 4829                    foreach (var item in property.Value.EnumerateArray())
 30                    {
 831                        if (item.ValueKind == JsonValueKind.Null)
 32                        {
 033                            array.Add(null);
 34                        }
 35                        else
 36                        {
 837                            array.Add(ConfigurationStore.DeserializeConfigurationStore(item));
 38                        }
 39                    }
 1640                    value = array;
 1641                    continue;
 42                }
 1643                if (property.NameEquals("nextLink"))
 44                {
 1645                    if (property.Value.ValueKind == JsonValueKind.Null)
 46                    {
 47                        continue;
 48                    }
 849                    nextLink = property.Value.GetString();
 50                    continue;
 51                }
 52            }
 1653            return new ConfigurationStoreListResult(value, nextLink);
 54        }
 55    }
 56}