< Summary

Class:Azure.Security.KeyVault.Certificates.CertificateOperationUpdateParameters
Assembly:Azure.Security.KeyVault.Certificates
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Certificates\src\CertificateOperationUpdateParameters.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:25
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.cctor()-100%100%
.ctor(...)-100%100%
Azure.Security.KeyVault.IJsonSerializable.WriteProperties(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Certificates\src\CertificateOperationUpdateParameters.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Text.Json;
 5
 6namespace Azure.Security.KeyVault.Certificates
 7{
 8    internal class CertificateOperationUpdateParameters : IJsonSerializable
 9    {
 10        private const string CancellationRequestedPropertyName = "cancellation_requested";
 211        private static readonly JsonEncodedText s_cancellationRequestedPropertyNameBytes = JsonEncodedText.Encode(Cancel
 12
 13        private readonly bool _cancellationRequested;
 14
 815        public CertificateOperationUpdateParameters(bool cancellationRequested)
 16        {
 817            _cancellationRequested = cancellationRequested;
 818        }
 19
 20        void IJsonSerializable.WriteProperties(Utf8JsonWriter json)
 21        {
 822            json.WriteBoolean(s_cancellationRequestedPropertyNameBytes, _cancellationRequested);
 823        }
 24    }
 25}