< Summary

Class:Azure.ResourceManager.Resources.Models.HttpMessage
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\HttpMessage.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\HttpMessage.Serialization.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:61
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Content()-0%100%
DeserializeHttpMessage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\HttpMessage.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
 8namespace Azure.ResourceManager.Resources.Models
 9{
 10    /// <summary> HTTP message. </summary>
 11    public partial class HttpMessage
 12    {
 13        /// <summary> Initializes a new instance of HttpMessage. </summary>
 014        internal HttpMessage()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of HttpMessage. </summary>
 19        /// <param name="content"> HTTP message content. </param>
 020        internal HttpMessage(object content)
 21        {
 022            Content = content;
 023        }
 24
 25        /// <summary> HTTP message content. </summary>
 026        public object Content { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\HttpMessage.Serialization.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 System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Resources.Models
 12{
 13    public partial class HttpMessage
 14    {
 15        internal static HttpMessage DeserializeHttpMessage(JsonElement element)
 16        {
 017            object content = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("content"))
 21                {
 022                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 026                    content = property.Value.GetObject();
 27                    continue;
 28                }
 29            }
 030            return new HttpMessage(content);
 31        }
 32    }
 33}