< Summary

Class:Azure.Core.ResponseWithHeaders`2
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\ResponseWithHeaders{T,THeaders}.cs
Covered lines:7
Uncovered lines:2
Coverable lines:9
Total lines:27
Line coverage:77.7% (7 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
GetRawResponse()-100%100%
get_Value()-100%100%
get_Headers()-0%100%
op_Implicit(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\ResponseWithHeaders{T,THeaders}.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4#nullable enable
 5
 6namespace Azure.Core
 7{
 8    internal class ResponseWithHeaders<T, THeaders> : Response<T>
 9    {
 10        private readonly Response _rawResponse;
 11
 1412        public ResponseWithHeaders(T value, THeaders headers, Response rawResponse)
 13        {
 1414            _rawResponse = rawResponse;
 1415            Value = value;
 1416            Headers = headers;
 1417        }
 18
 2819        public override Response GetRawResponse() => _rawResponse;
 20
 1421        public override T Value { get; }
 22
 023        public THeaders Headers { get; }
 24
 025        public static implicit operator Response(ResponseWithHeaders<T, THeaders> self) => self.GetRawResponse();
 26    }
 27}