Skip to content

refactor(tests): more idiomatic Fake methods and result assertions

d1404a2
Select commit
Loading
Failed to load commit list.
Merged

refactor(tests): more idiomatic Fake methods and result assertions #206

refactor(tests): more idiomatic Fake methods and result assertions
d1404a2
Select commit
Loading
Failed to load commit list.
Codeac.io / Codeac Code Quality succeeded Apr 12, 2025 in 1m 40s

Codeac Code Quality

This PR contains 0 errors and 67 warnings.

Annotations

Check warning on line 475 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 11 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:203

Check warning on line 214 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 11 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:464

Check warning on line 265 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 14 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:209

Check warning on line 492 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 10 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:455

Check warning on line 223 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 14 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:251

Check warning on line 465 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 10 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:482

Check warning on line 285 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 17 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:224

Check warning on line 500 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 9 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:434

Check warning on line 241 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 17 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:268

Check warning on line 443 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 9 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:491

Check warning on line 299 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 12 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:226

Check warning on line 514 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 17 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:321

Check warning on line 238 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 12 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:287

Check warning on line 338 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 17 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerControllerTests.cs:497

Check warning on line 110 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 19 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:58

Check warning on line 26 in src/Dotnet.Samples.AspNetCore.WebApi/Models/Player.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 14 lines is too similar to src/Dotnet.Samples.AspNetCore.WebApi/Models/PlayerRequestModel.cs:14

Check warning on line 77 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 19 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:91

Check warning on line 28 in src/Dotnet.Samples.AspNetCore.WebApi/Models/PlayerRequestModel.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 14 lines is too similar to src/Dotnet.Samples.AspNetCore.WebApi/Models/Player.cs:12

Check warning on line 176 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 15 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:133

Check warning on line 71 in src/Dotnet.Samples.AspNetCore.WebApi/Migrations/20240515182115_InitialCreate.Designer.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 53 lines is too similar to src/Dotnet.Samples.AspNetCore.WebApi/Migrations/PlayerDbContextModelSnapshot.cs:15

Check warning on line 148 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 15 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:161

Check warning on line 68 in src/Dotnet.Samples.AspNetCore.WebApi/Migrations/PlayerDbContextModelSnapshot.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 53 lines is too similar to src/Dotnet.Samples.AspNetCore.WebApi/Migrations/20240515182115_InitialCreate.Designer.cs:18

Check warning on line 213 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 10 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:146

Check warning on line 168 in src/Dotnet.Samples.AspNetCore.WebApi/Data/PlayerData.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 160 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Utilities/PlayerFakes.cs:14

Check warning on line 156 in test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

CodeDuplication

This block of 10 lines is too similar to test/Dotnet.Samples.AspNetCore.WebApi.Tests/Unit/PlayerServiceTests.cs:203