refactor(tests): more idiomatic Fake methods and result assertions #206
Codeac Code Quality
This PR contains 0 errors and 67 warnings.
Annotations
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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