< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Value()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeParameterValuesValue(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ParameterValuesValue.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> The value of a parameter. </summary>
 11    public partial class ParameterValuesValue
 12    {
 13        /// <summary> Initializes a new instance of ParameterValuesValue. </summary>
 814        public ParameterValuesValue()
 15        {
 816        }
 17
 18        /// <summary> Initializes a new instance of ParameterValuesValue. </summary>
 19        /// <param name="value"> The value of the parameter. </param>
 1821620        internal ParameterValuesValue(object value)
 21        {
 1821622            Value = value;
 1821623        }
 24
 25        /// <summary> The value of the parameter. </summary>
 1824026        public object Value { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ParameterValuesValue.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 ParameterValuesValue : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (Value != null)
 19            {
 820                writer.WritePropertyName("value");
 821                writer.WriteObjectValue(Value);
 22            }
 823            writer.WriteEndObject();
 824        }
 25
 26        internal static ParameterValuesValue DeserializeParameterValuesValue(JsonElement element)
 27        {
 1821628            object value = default;
 7286429            foreach (var property in element.EnumerateObject())
 30            {
 1821631                if (property.NameEquals("value"))
 32                {
 1821633                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 1821637                    value = property.Value.GetObject();
 38                    continue;
 39                }
 40            }
 1821641            return new ParameterValuesValue(value);
 42        }
 43    }
 44}