Skip to content

Commit 90a1176

Browse files
committed
feat: add Shouldly package and update assertions in integration tests
1 parent aa6e450 commit 90a1176

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
global using System;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
global using Xunit;
21
global using Bogus;
3-
global using FluentAssertions;
42
global using MassTransit.Testing;
53
global using Shouldly;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
global using System;
2-
global using System.Diagnostics.CodeAnalysis;
1+
global using System.Diagnostics.CodeAnalysis;

Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/Fitnet.Reports.IntegrationTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<ItemGroup>
88
<PackageReference Include="Evolutionaryarchitecture.Fitnet.Common.IntegrationTeststoolbox" Version="4.1.7" />
99
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
10+
<PackageReference Include="Shouldly" Version="4.3.0" />
1011
<PackageReference Include="System.Net.Http" Version="4.3.4" />
1112
<PackageReference Include="System.Text.Encodings.Web" Version="9.0.0" />
1213
<PackageReference Include="System.Text.Json" Version="9.0.0" />

Chapter-4-applying-tactical-domain-driven-design/Fitnet/Src/Reports/Tests/Fitnet.Reports.IntegrationTests/GenerateNewPassesPerMonthReport/GenerateNewPassesPerMonthReportTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal async Task Given_valid_generate_new_report_request_Then_should_return_c
3939
var getReportResult = await _applicationHttpClient.GetAsync(ReportsApiPaths.GenerateNewReport);
4040

4141
// Assert
42-
getReportResult.Should().HaveStatusCode(HttpStatusCode.OK);
42+
getReportResult.StatusCode.ShouldBe(HttpStatusCode.OK);
4343
var reportData = await getReportResult.Content.ReadFromJsonAsync<NewPassesRegistrationsPerMonthResponse>();
4444
await Verify(reportData);
4545
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
global using System.Net;
22
global using System.Net.Http.Json;
3-
global using Xunit;
43
global using Bogus;
5-
global using FluentAssertions;
64
global using MassTransit.Testing;
5+
global using Shouldly;

0 commit comments

Comments
 (0)