< Summary

Class:Azure.DigitalTwins.Core.Serialization.PayloadHelper
Assembly:Azure.DigitalTwins.Core
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\PayloadHelper.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:22
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
BuildArrayPayload(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\PayloadHelper.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using Azure.Core;
 6
 7namespace Azure.DigitalTwins.Core.Serialization
 8{
 9    internal static class PayloadHelper
 10    {
 11        /// <summary>
 12        /// Adds the specified unescaped json entities into a json array.
 13        /// </summary>
 14        /// <param name="entities">The entities to add</param>
 15        /// <returns>A json array</returns>
 16        internal static string BuildArrayPayload(IEnumerable<string> entities)
 17        {
 4418            Argument.AssertNotNull(entities, nameof(entities));
 4219            return $"[{string.Join(",", entities)}]";
 20        }
 21    }
 22}

Methods/Properties

BuildArrayPayload(...)