< Summary

Class:Azure.ResourceManager.Compute.Models.RunCommandInputParameter
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RunCommandInputParameter.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RunCommandInputParameter.Serialization.cs
Covered lines:0
Uncovered lines:17
Coverable lines:17
Total lines:63
Line coverage:0% (0 of 17)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RunCommandInputParameter.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;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Describes the properties of a run command parameter. </summary>
 13    public partial class RunCommandInputParameter
 14    {
 15        /// <summary> Initializes a new instance of RunCommandInputParameter. </summary>
 16        /// <param name="name"> The run command parameter name. </param>
 17        /// <param name="value"> The run command parameter value. </param>
 018        public RunCommandInputParameter(string name, string value)
 19        {
 020            if (name == null)
 21            {
 022                throw new ArgumentNullException(nameof(name));
 23            }
 024            if (value == null)
 25            {
 026                throw new ArgumentNullException(nameof(value));
 27            }
 28
 029            Name = name;
 030            Value = value;
 031        }
 32
 33        /// <summary> The run command parameter name. </summary>
 034        public string Name { get; }
 35        /// <summary> The run command parameter value. </summary>
 036        public string Value { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RunCommandInputParameter.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.Compute.Models
 12{
 13    public partial class RunCommandInputParameter : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("name");
 019            writer.WriteStringValue(Name);
 020            writer.WritePropertyName("value");
 021            writer.WriteStringValue(Value);
 022            writer.WriteEndObject();
 023        }
 24    }
 25}