< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.TriggerListResponse
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerListResponse.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerListResponse.Serialization.cs
Covered lines:0
Uncovered lines:23
Coverable lines:23
Total lines:85
Line coverage:0% (0 of 23)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerListResponse.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;
 9using System.Collections.Generic;
 10using System.Linq;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> A list of trigger resources. </summary>
 15    public partial class TriggerListResponse
 16    {
 17        /// <summary> Initializes a new instance of TriggerListResponse. </summary>
 18        /// <param name="value"> List of triggers. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 020        internal TriggerListResponse(IEnumerable<TriggerResource> value)
 21        {
 022            if (value == null)
 23            {
 024                throw new ArgumentNullException(nameof(value));
 25            }
 26
 027            Value = value.ToList();
 028        }
 29
 30        /// <summary> Initializes a new instance of TriggerListResponse. </summary>
 31        /// <param name="value"> List of triggers. </param>
 32        /// <param name="nextLink"> The link to the next page of results, if any remaining results exist. </param>
 033        internal TriggerListResponse(IReadOnlyList<TriggerResource> value, string nextLink)
 34        {
 035            Value = value;
 036            NextLink = nextLink;
 037        }
 38
 39        /// <summary> List of triggers. </summary>
 040        public IReadOnlyList<TriggerResource> Value { get; }
 41        /// <summary> The link to the next page of results, if any remaining results exist. </summary>
 042        public string NextLink { get; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerListResponse.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.Analytics.Synapse.Artifacts.Models
 13{
 14    public partial class TriggerListResponse
 15    {
 16        internal static TriggerListResponse DeserializeTriggerListResponse(JsonElement element)
 17        {
 018            IReadOnlyList<TriggerResource> value = default;
 019            Optional<string> nextLink = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("value"))
 23                {
 024                    List<TriggerResource> array = new List<TriggerResource>();
 025                    foreach (var item in property.Value.EnumerateArray())
 26                    {
 027                        array.Add(TriggerResource.DeserializeTriggerResource(item));
 28                    }
 029                    value = array;
 030                    continue;
 31                }
 032                if (property.NameEquals("nextLink"))
 33                {
 034                    nextLink = property.Value.GetString();
 35                    continue;
 36                }
 37            }
 038            return new TriggerListResponse(value, nextLink.Value);
 39        }
 40    }
 41}