< Summary

Class:Azure.ResourceManager.Network.Models.HttpConfiguration
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\HttpConfiguration.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\HttpConfiguration.Serialization.cs
Covered lines:0
Uncovered lines:29
Coverable lines:29
Total lines:85
Line coverage:0% (0 of 29)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Method()-0%100%
get_Headers()-0%100%
get_ValidStatusCodes()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\HttpConfiguration.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> HTTP configuration of the connectivity check. </summary>
 13    public partial class HttpConfiguration
 14    {
 15        /// <summary> Initializes a new instance of HttpConfiguration. </summary>
 016        public HttpConfiguration()
 17        {
 018            Method = "Get";
 019        }
 20
 21        /// <summary> Initializes a new instance of HttpConfiguration. </summary>
 22        /// <param name="method"> HTTP method. </param>
 23        /// <param name="headers"> List of HTTP headers. </param>
 24        /// <param name="validStatusCodes"> Valid status codes. </param>
 025        internal HttpConfiguration(string method, IList<HttpHeader> headers, IList<int> validStatusCodes)
 26        {
 027            Method = method;
 028            Headers = headers;
 029            ValidStatusCodes = validStatusCodes;
 030        }
 31
 32        /// <summary> HTTP method. </summary>
 033        public string Method { get; set; }
 34        /// <summary> List of HTTP headers. </summary>
 035        public IList<HttpHeader> Headers { get; set; }
 36        /// <summary> Valid status codes. </summary>
 037        public IList<int> ValidStatusCodes { get; set; }
 38    }
 39}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\HttpConfiguration.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.Network.Models
 12{
 13    public partial class HttpConfiguration : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Method != null)
 19            {
 020                writer.WritePropertyName("method");
 021                writer.WriteStringValue(Method);
 22            }
 023            if (Headers != null)
 24            {
 025                writer.WritePropertyName("headers");
 026                writer.WriteStartArray();
 027                foreach (var item in Headers)
 28                {
 029                    writer.WriteObjectValue(item);
 30                }
 031                writer.WriteEndArray();
 32            }
 033            if (ValidStatusCodes != null)
 34            {
 035                writer.WritePropertyName("validStatusCodes");
 036                writer.WriteStartArray();
 037                foreach (var item in ValidStatusCodes)
 38                {
 039                    writer.WriteNumberValue(item);
 40                }
 041                writer.WriteEndArray();
 42            }
 043            writer.WriteEndObject();
 044        }
 45    }
 46}