Skip to content

Commit d76a11c

Browse files
author
Andrew Omondi
committed
Fixes setup
1 parent 9a37996 commit d76a11c

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

tests/Microsoft.Graph.DotnetCore.Test/Mocks/MockAuthenticationProvider.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ public class MockAuthenticationProvider : Mock<IAuthenticationProvider>
1414
public MockAuthenticationProvider(string accessToken = null)
1515
: base(MockBehavior.Strict)
1616
{
17-
this.SetupAllProperties();
18-
1917
this.Setup(
2018
provider => provider.AuthenticateRequestAsync(It.IsAny<HttpRequestMessage>()))
2119
.Callback<HttpRequestMessage>(r => r.Headers.Authorization = new AuthenticationHeaderValue(CoreConstants.Headers.Bearer, accessToken ?? "Default-Token"))

tests/Microsoft.Graph.DotnetCore.Test/Mocks/MockHttpProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class MockHttpProvider : Mock<IHttpProvider>
1212
public MockHttpProvider(HttpResponseMessage httpResponseMessage, ISerializer serializer = null)
1313
: base(MockBehavior.Strict)
1414
{
15-
this.SetupAllProperties();
1615

1716
this.Setup(
1817
provider => provider.SendAsync(It.IsAny<HttpRequestMessage>()))

0 commit comments

Comments
 (0)