< Summary

Class:Azure.ResourceManager.Storage.Models.ListAccountSasResponse
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListAccountSasResponse.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListAccountSasResponse.Serialization.cs
Covered lines:10
Uncovered lines:2
Coverable lines:12
Total lines:61
Line coverage:83.3% (10 of 12)
Covered branches:6
Total branches:6
Branch coverage:100% (6 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_AccountSasToken()-100%100%
DeserializeListAccountSasResponse(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListAccountSasResponse.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.Storage.Models
 9{
 10    /// <summary> The List SAS credentials operation response. </summary>
 11    public partial class ListAccountSasResponse
 12    {
 13        /// <summary> Initializes a new instance of ListAccountSasResponse. </summary>
 014        internal ListAccountSasResponse()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ListAccountSasResponse. </summary>
 19        /// <param name="accountSasToken"> List SAS credentials of storage account. </param>
 820        internal ListAccountSasResponse(string accountSasToken)
 21        {
 822            AccountSasToken = accountSasToken;
 823        }
 24
 25        /// <summary> List SAS credentials of storage account. </summary>
 826        public string AccountSasToken { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListAccountSasResponse.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.Storage.Models
 12{
 13    public partial class ListAccountSasResponse
 14    {
 15        internal static ListAccountSasResponse DeserializeListAccountSasResponse(JsonElement element)
 16        {
 817            string accountSasToken = default;
 3218            foreach (var property in element.EnumerateObject())
 19            {
 820                if (property.NameEquals("accountSasToken"))
 21                {
 822                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 826                    accountSasToken = property.Value.GetString();
 27                    continue;
 28                }
 29            }
 830            return new ListAccountSasResponse(accountSasToken);
 31        }
 32    }
 33}