Skip to content

Commit

Permalink
Upgrade nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
aimenux committed Jun 4, 2024
1 parent f8d3607 commit 2d38d52
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
3 changes: 2 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"version": "net8.0",
"version": "8.0.0",
"rollForward": "latestMajor",
"allowPrerelease": false
}
}
4 changes: 2 additions & 2 deletions src/WebApi/WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<ItemGroup>
<PackageReference Include="AutoFixture" Version="4.18.1" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>

</Project>
13 changes: 8 additions & 5 deletions test/IntegrationTests/IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
9 changes: 6 additions & 3 deletions test/UnitTests/TenantIdMiddlewareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ public class TenantIdMiddlewareTests
public async Task InvokeAsync_When_TenantId_Is_Valid_Then_Should_Return_Ok_StatusCode(string tenantId)
{
// arrange
using var body = new MemoryStream();
var next = BuildRequestDelegate();
var options = Options.Create(new Settings());
var context = new DefaultHttpContext
{
Response =
{
Body = new MemoryStream(),
Body = body,
},
Request =
{
Expand Down Expand Up @@ -59,13 +60,14 @@ public async Task InvokeAsync_When_TenantId_Is_Valid_Then_Should_Return_Ok_Statu
public async Task InvokeAsync_When_TenantId_Is_Not_Valid_Then_Should_Return_BadRequest_StatusCode(string tenantId)
{
// arrange
using var body = new MemoryStream();
var next = BuildRequestDelegate();
var options = Options.Create(new Settings());
var context = new DefaultHttpContext
{
Response =
{
Body = new MemoryStream(),
Body = body,
},
Request =
{
Expand Down Expand Up @@ -93,6 +95,7 @@ public async Task InvokeAsync_When_TenantId_Is_Not_Valid_Then_Should_Return_BadR
public async Task InvokeAsync_When_Path_Is_Excluded_Then_Should_Return_Ok_StatusCode(string path)
{
// arrange
using var body = new MemoryStream();
var next = BuildRequestDelegate();
var options = Options.Create(new Settings
{
Expand All @@ -102,7 +105,7 @@ public async Task InvokeAsync_When_Path_Is_Excluded_Then_Should_Return_Ok_Status
{
Response =
{
Body = new MemoryStream(),
Body = body,
},
Request =
{
Expand Down
11 changes: 7 additions & 4 deletions test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 2d38d52

Please sign in to comment.