DocSpace-client/thirdparty/onedrive-sdk-csharp-master/tests/Test.OneDriveSdk/Mocks/MockAuthenticationProvider.cs
2020-07-10 18:37:02 +03:00

24 lines
828 B
C#

// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Test.OneDrive.Sdk.Mocks
{
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Graph;
using Moq;
public class MockAuthenticationProvider : Mock<IAuthenticationProvider>
{
public MockAuthenticationProvider()
: base(MockBehavior.Strict)
{
this.SetupAllProperties();
this.Setup(provider => provider.AuthenticateRequestAsync(It.IsAny<HttpRequestMessage>())).Returns(Task.FromResult(0));
}
}
}