Skip to content

Commit 902f7ea

Browse files
authored
Merge pull request #1437 from microsoftgraph/dependabot/nuget/Moq-4.18.2
Bump Moq from 4.16.1 to 4.18.2
2 parents a6369c1 + d76a11c commit 902f7ea

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
20-
<PackageReference Include="Moq" Version="4.16.1" />
20+
<PackageReference Include="Moq" Version="4.18.2" />
2121
<PackageReference Include="xunit" Version="2.4.2" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2323
<PrivateAssets>all</PrivateAssets>

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)