< Summary

Class:Azure.ResourceManager.Resources.Models.OperationAutoGenerated
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationAutoGenerated.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationAutoGenerated.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:75
Line coverage:0% (0 of 19)
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_Name()-0%100%
get_Display()-0%100%
DeserializeOperationAutoGenerated(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationAutoGenerated.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> Microsoft.Features operation. </summary>
 11    public partial class OperationAutoGenerated
 12    {
 13        /// <summary> Initializes a new instance of OperationAutoGenerated. </summary>
 014        internal OperationAutoGenerated()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of OperationAutoGenerated. </summary>
 19        /// <param name="name"> Operation name: {provider}/{resource}/{operation}. </param>
 20        /// <param name="display"> The object that represents the operation. </param>
 021        internal OperationAutoGenerated(string name, OperationDisplayAutoGenerated display)
 22        {
 023            Name = name;
 024            Display = display;
 025        }
 26
 27        /// <summary> Operation name: {provider}/{resource}/{operation}. </summary>
 028        public string Name { get; }
 29        /// <summary> The object that represents the operation. </summary>
 030        public OperationDisplayAutoGenerated Display { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationAutoGenerated.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 OperationAutoGenerated
 14    {
 15        internal static OperationAutoGenerated DeserializeOperationAutoGenerated(JsonElement element)
 16        {
 017            string name = default;
 018            OperationDisplayAutoGenerated display = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("name"))
 22                {
 023                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 027                    name = property.Value.GetString();
 028                    continue;
 29                }
 030                if (property.NameEquals("display"))
 31                {
 032                    if (property.Value.ValueKind == JsonValueKind.Null)
 33                    {
 34                        continue;
 35                    }
 036                    display = OperationDisplayAutoGenerated.DeserializeOperationDisplayAutoGenerated(property.Value);
 37                    continue;
 38                }
 39            }
 040            return new OperationAutoGenerated(name, display);
 41        }
 42    }
 43}