< Summary

Class:Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsSkuInfo
Assembly:Azure.ResourceManager.DigitalTwins
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsSkuInfo.cs
C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsSkuInfo.Serialization.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:60
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsSkuInfo.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.DigitalTwins.Models
 9{
 10    /// <summary> Information about the SKU of the DigitalTwinsInstance. </summary>
 11    public partial class DigitalTwinsSkuInfo
 12    {
 13        /// <summary> Initializes a new instance of DigitalTwinsSkuInfo. </summary>
 14        /// <param name="name"> The name of the SKU. </param>
 015        public DigitalTwinsSkuInfo(DigitalTwinsSku name)
 16        {
 017            Name = name;
 018        }
 19
 20        /// <summary> The name of the SKU. </summary>
 021        public DigitalTwinsSku Name { get; set; }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsSkuInfo.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.DigitalTwins.Models
 12{
 13    public partial class DigitalTwinsSkuInfo : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("name");
 019            writer.WriteStringValue(Name.ToString());
 020            writer.WriteEndObject();
 021        }
 22
 23        internal static DigitalTwinsSkuInfo DeserializeDigitalTwinsSkuInfo(JsonElement element)
 24        {
 025            DigitalTwinsSku name = default;
 026            foreach (var property in element.EnumerateObject())
 27            {
 028                if (property.NameEquals("name"))
 29                {
 030                    name = new DigitalTwinsSku(property.Value.GetString());
 31                    continue;
 32                }
 33            }
 034            return new DigitalTwinsSkuInfo(name);
 35        }
 36    }
 37}