< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_NextLink()-0%100%
get_Value()-0%100%
DeserializeDigitalTwinsEndpointResourceListResult(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsEndpointResourceListResult.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;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.DigitalTwins.Models
 12{
 13    /// <summary> A list of DigitalTwinsInstance Endpoints with a next link. </summary>
 14    public partial class DigitalTwinsEndpointResourceListResult
 15    {
 16        /// <summary> Initializes a new instance of DigitalTwinsEndpointResourceListResult. </summary>
 017        internal DigitalTwinsEndpointResourceListResult()
 18        {
 019            Value = new ChangeTrackingList<DigitalTwinsEndpointResource>();
 020        }
 21
 22        /// <summary> Initializes a new instance of DigitalTwinsEndpointResourceListResult. </summary>
 23        /// <param name="nextLink"> The link used to get the next page of DigitalTwinsInstance Endpoints. </param>
 24        /// <param name="value"> A list of DigitalTwinsInstance Endpoints. </param>
 025        internal DigitalTwinsEndpointResourceListResult(string nextLink, IReadOnlyList<DigitalTwinsEndpointResource> val
 26        {
 027            NextLink = nextLink;
 028            Value = value;
 029        }
 30
 31        /// <summary> The link used to get the next page of DigitalTwinsInstance Endpoints. </summary>
 032        public string NextLink { get; }
 33        /// <summary> A list of DigitalTwinsInstance Endpoints. </summary>
 034        public IReadOnlyList<DigitalTwinsEndpointResource> Value { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.ResourceManager.DigitalTwins\src\Generated\Models\DigitalTwinsEndpointResourceListResult.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.DigitalTwins.Models
 13{
 14    public partial class DigitalTwinsEndpointResourceListResult
 15    {
 16        internal static DigitalTwinsEndpointResourceListResult DeserializeDigitalTwinsEndpointResourceListResult(JsonEle
 17        {
 018            Optional<string> nextLink = default;
 019            Optional<IReadOnlyList<DigitalTwinsEndpointResource>> value = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("nextLink"))
 23                {
 024                    nextLink = property.Value.GetString();
 025                    continue;
 26                }
 027                if (property.NameEquals("value"))
 28                {
 029                    List<DigitalTwinsEndpointResource> array = new List<DigitalTwinsEndpointResource>();
 030                    foreach (var item in property.Value.EnumerateArray())
 31                    {
 032                        array.Add(DigitalTwinsEndpointResource.DeserializeDigitalTwinsEndpointResource(item));
 33                    }
 034                    value = array;
 35                    continue;
 36                }
 37            }
 038            return new DigitalTwinsEndpointResourceListResult(nextLink.Value, Optional.ToList(value));
 39        }
 40    }
 41}