< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.AlterationsExtensions
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\AlterationsExtensions.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:57
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
GetAsync()-0%100%
ReplaceAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\AlterationsExtensions.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
 12{
 13    using Models;
 14    using System.Threading;
 15    using System.Threading.Tasks;
 16
 17    /// <summary>
 18    /// Extension methods for Alterations.
 19    /// </summary>
 20    public static partial class AlterationsExtensions
 21    {
 22            /// <summary>
 23            /// Download alterations from runtime.
 24            /// </summary>
 25            /// <param name='operations'>
 26            /// The operations group for this extension method.
 27            /// </param>
 28            /// <param name='cancellationToken'>
 29            /// The cancellation token.
 30            /// </param>
 31            public static async Task<WordAlterationsDTO> GetAsync(this IAlterations operations, CancellationToken cancel
 32            {
 033                using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(f
 34                {
 035                    return _result.Body;
 36                }
 037            }
 38
 39            /// <summary>
 40            /// Replace alterations data.
 41            /// </summary>
 42            /// <param name='operations'>
 43            /// The operations group for this extension method.
 44            /// </param>
 45            /// <param name='wordAlterations'>
 46            /// New alterations data.
 47            /// </param>
 48            /// <param name='cancellationToken'>
 49            /// The cancellation token.
 50            /// </param>
 51            public static async Task ReplaceAsync(this IAlterations operations, WordAlterationsDTO wordAlterations, Canc
 52            {
 053                (await operations.ReplaceWithHttpMessagesAsync(wordAlterations, null, cancellationToken).ConfigureAwait(
 054            }
 55
 56    }
 57}

Methods/Properties

GetAsync()
ReplaceAsync()