< Summary

Class:Azure.Storage.Files.Shares.Models.ShareFileRequestConditions
Assembly:Azure.Storage.Files.Shares
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.Shares\src\Models\ShareFileRequestConditions.cs
Covered lines:1
Uncovered lines:1
Coverable lines:2
Total lines:27
Line coverage:50% (1 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_LeaseId()-100%100%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.Shares\src\Models\ShareFileRequestConditions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.Storage.Files.Shares.Models
 5{
 6    /// <summary>
 7    /// Specifies lease access conditions for a file.
 8    /// </summary>
 9    public class ShareFileRequestConditions
 10    {
 11        /// <summary>
 12        /// Optionally limit requests to resources with an active lease
 13        /// matching this Id.
 14        /// </summary>
 10215        public string LeaseId { get; set; }
 16
 17        /// <summary>
 18        /// Converts the value of the current RequestConditions object to
 19        /// its equivalent string representation.
 20        /// </summary>
 21        /// <returns>
 22        /// A string representation of the RequestConditions.
 23        /// </returns>
 24        public override string ToString()
 025            => $"[{nameof(LeaseId)}={LeaseId}]";
 26    }
 27}

Methods/Properties

get_LeaseId()
ToString()