Skip to content

Commit b8f4209

Browse files
author
Andrew Omondi
committed
cleanup with comment
1 parent 277727e commit b8f4209

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/BatchRequestBuilderTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33
// ------------------------------------------------------------------------------
44

5-
#pragma warning disable CS0618 // Type or member is obsolete
65
namespace Microsoft.Graph.DotnetCore.Core.Test.Requests
76
{
87
using System.Collections.Generic;
@@ -34,7 +33,9 @@ public async Task BatchRequestBuilderAsync()
3433
BatchRequestStep requestStep2 = new BatchRequestStep("2", httpRequestMessage2, new List<string> { "1" });
3534

3635
// 4.3 Add batch request steps to BatchRequestContent.
36+
#pragma warning disable CS0618 // Type or member is obsolete use the BatchRequestContentCollection for making batch requests
3737
BatchRequestContent batchRequestContent = new BatchRequestContent(baseClient, requestStep1, requestStep2);
38+
#pragma warning restore CS0618 // Type or member is obsolete use the BatchRequestContentCollection for making batch requests
3839
var requestInformation = await batchRequestBuilder.ToPostRequestInformationAsync(batchRequestContent);
3940

4041
// Assert

tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/Content/BatchRequestContentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33
// ------------------------------------------------------------------------------
44

5-
#pragma warning disable CS0618 // Type or member is obsolete
5+
#pragma warning disable CS0618 // Type or member is obsolete Guidance is to use the BatchRequestContentCollection for making batch requests
66
namespace Microsoft.Graph.DotnetCore.Core.Test.Requests.Content
77
{
88
using System;

0 commit comments

Comments
 (0)