Skip to content

Commit c27a151

Browse files
Adding net5 tests
1 parent 18be5a6 commit c27a151

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

Mastercard.Developer.OAuth1Signer.RestSharpV2/Signers/RestSharpSigner.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public void Sign(Uri baseUri, RestRequest request)
4040
fullUri.Append("/").Append(resource);
4141
}
4242

43-
// System.RuntimeType
44-
4543
// Add query params
4644
var parameterString = new StringBuilder();
4745
foreach (var requestParameter in request.Parameters.Where(p => p is QueryParameter))
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<Authors>Mastercard</Authors>
7+
<Company>Mastercard</Company>
8+
<!-- See: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming -->
9+
<SignAssembly>true</SignAssembly>
10+
<AssemblyOriginatorKeyFile>../../Identity.snk</AssemblyOriginatorKeyFile>
11+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
12+
<FileVersion>1.0.0.0</FileVersion>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<Compile Include="..\NetCore2\Authenticators\RestSharpOAuth1AuthenticatorTest.cs">
17+
<Link>Authenticators\RestSharpOAuth1AuthenticatorTest.cs</Link>
18+
</Compile>
19+
<Compile Include="..\NetCore2\Authenticators\RestSharpV2OAuth1AuthenticatorTest.cs">
20+
<Link>Authenticators\RestSharpV2OAuth1AuthenticatorTest.cs</Link>
21+
</Compile>
22+
<Compile Include="..\NetCore2\OAuthTest.cs">
23+
<Link>OAuthTest.cs</Link>
24+
</Compile>
25+
<Compile Include="..\NetCore2\Signers\NetHttpClientSignerTest.cs">
26+
<Link>Signers\NetHttpClientSignerTest.cs</Link>
27+
</Compile>
28+
<Compile Include="..\NetCore2\Signers\RestSharpSignerTest.cs">
29+
<Link>Signers\RestSharpSignerTest.cs</Link>
30+
</Compile>
31+
<Compile Include="..\NetCore2\Signers\RestSharpV2SignerTest.cs">
32+
<Link>Signers\RestSharpV2SignerTest.cs</Link>
33+
</Compile>
34+
<Compile Include="..\NetCore2\Test\TestUtils.cs">
35+
<Link>Test\TestUtils.cs</Link>
36+
</Compile>
37+
<Compile Include="..\NetCore2\Utils\AuthenticationUtilsTest.cs">
38+
<Link>Utils\AuthenticationUtilsTest.cs</Link>
39+
</Compile>
40+
<Compile Include="..\NetCore2\Utils\SecurityUtilsTest.cs">
41+
<Link>Utils\SecurityUtilsTest.cs</Link>
42+
</Compile>
43+
</ItemGroup>
44+
45+
<ItemGroup>
46+
<EmbeddedResource Include="..\NetCore2\_Resources\test_key_container.p12">
47+
<Link>_Resources\test_key_container.p12</Link>
48+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
49+
</EmbeddedResource>
50+
</ItemGroup>
51+
52+
<ItemGroup>
53+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
54+
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
55+
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
56+
<PackageReference Include="coverlet.collector" Version="1.3.0" />
57+
</ItemGroup>
58+
59+
<ItemGroup>
60+
<ProjectReference Include="..\..\Mastercard.Developer.OAuth1Signer.Core\Mastercard.Developer.OAuth1Signer.Core.csproj" />
61+
<ProjectReference Include="..\..\Mastercard.Developer.OAuth1Signer.RestSharpV2\Mastercard.Developer.OAuth1Signer.RestSharpV2.csproj" />
62+
<ProjectReference Include="..\..\Mastercard.Developer.OAuth1Signer.RestSharp\Mastercard.Developer.OAuth1Signer.RestSharp.csproj" />
63+
</ItemGroup>
64+
65+
</Project>

Mastercard.Developer.OAuth1Signer.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{01423AC1
2323
EndProject
2424
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mastercard.Developer.OAuth1Signer.RestSharpV2", "Mastercard.Developer.OAuth1Signer.RestSharpV2\Mastercard.Developer.OAuth1Signer.RestSharpV2.csproj", "{344C0659-8994-4CA8-9792-E003A511A971}"
2525
EndProject
26+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mastercard.Developer.OAuth1Signer.Tests.Net5", "Mastercard.Developer.OAuth1Signer.Tests\Net5\Mastercard.Developer.OAuth1Signer.Tests.Net5.csproj", "{471BDA51-DE2D-4865-BC27-6617C355C8E8}"
27+
EndProject
2628
Global
2729
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2830
Debug|Any CPU = Debug|Any CPU
@@ -53,6 +55,10 @@ Global
5355
{344C0659-8994-4CA8-9792-E003A511A971}.Debug|Any CPU.Build.0 = Debug|Any CPU
5456
{344C0659-8994-4CA8-9792-E003A511A971}.Release|Any CPU.ActiveCfg = Release|Any CPU
5557
{344C0659-8994-4CA8-9792-E003A511A971}.Release|Any CPU.Build.0 = Release|Any CPU
58+
{471BDA51-DE2D-4865-BC27-6617C355C8E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59+
{471BDA51-DE2D-4865-BC27-6617C355C8E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
60+
{471BDA51-DE2D-4865-BC27-6617C355C8E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
61+
{471BDA51-DE2D-4865-BC27-6617C355C8E8}.Release|Any CPU.Build.0 = Release|Any CPU
5662
EndGlobalSection
5763
GlobalSection(SolutionProperties) = preSolution
5864
HideSolutionNode = FALSE
@@ -61,6 +67,7 @@ Global
6167
{A82F452A-3AE0-4ABF-BDD1-CE9A00AAD4C9} = {01423AC1-F9A2-4742-9E15-55DC880748CD}
6268
{879DAE6D-71CA-4860-8253-1889597F584F} = {01423AC1-F9A2-4742-9E15-55DC880748CD}
6369
{DFFF65A6-0A8F-403B-A811-C0A686B47F91} = {01423AC1-F9A2-4742-9E15-55DC880748CD}
70+
{471BDA51-DE2D-4865-BC27-6617C355C8E8} = {01423AC1-F9A2-4742-9E15-55DC880748CD}
6471
EndGlobalSection
6572
GlobalSection(ExtensibilityGlobals) = postSolution
6673
SolutionGuid = {B80C941C-E5C5-4556-9C7C-EBF28D66C150}

0 commit comments

Comments
 (0)