< Summary

Class:Azure.Template.MiniSecretClientOptions
Assembly:Azure.Template
File(s):C:\Git\azure-sdk-for-net\sdk\template\Azure.Template\src\MiniSecretClientOptions.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:41
Line coverage:87.5% (7 of 8)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Version()-100%100%
.ctor(...)-85.71%50%

File(s)

C:\Git\azure-sdk-for-net\sdk\template\Azure.Template\src\MiniSecretClientOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using Azure.Core;
 6
 7namespace Azure.Template
 8{
 9    /// <summary>
 10    /// The options for <see cref="MiniSecretClient"/>
 11    /// </summary>
 12    public class MiniSecretClientOptions : ClientOptions
 13    {
 414        internal string Version { get; }
 15
 16        /// <summary>
 17        /// Initializes a new instance of the <see cref="MiniSecretClientOptions"/>.
 18        /// </summary>
 419        public MiniSecretClientOptions(ServiceVersion version = ServiceVersion.V7_0)
 20        {
 421            Version = version switch
 422            {
 823                ServiceVersion.V7_0 => "7.0",
 024                _ => throw new ArgumentException($"The service version {version} is not supported by this library.", nam
 425            };
 426        }
 27
 28        /// <summary>
 29        /// The template service version.
 30        /// </summary>
 31        public enum ServiceVersion
 32        {
 33            /// <summary>
 34            /// The 7.0 of the secret service.
 35            /// </summary>
 36#pragma warning disable CA1707 // Remove the underscores from member name
 37            V7_0 = 1
 38#pragma warning restore
 39        }
 40    }
 41}

Methods/Properties

get_Version()
.ctor(...)