< Summary

Class:Azure.ResourceManager.Resources.DeploymentsWhatIfHeaders
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\DeploymentsWhatIfHeaders.cs
Covered lines:3
Uncovered lines:2
Coverable lines:5
Total lines:23
Line coverage:60% (3 of 5)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Location()-0%0%
get_RetryAfter()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\DeploymentsWhatIfHeaders.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 Azure;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Resources
 12{
 13    internal class DeploymentsWhatIfHeaders
 14    {
 15        private readonly Response _response;
 4016        public DeploymentsWhatIfHeaders(Response response)
 17        {
 4018            _response = response;
 4019        }
 020        public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null;
 021        public string RetryAfter => _response.Headers.TryGetValue("Retry-After", out string value) ? value : null;
 22    }
 23}