test(identity): add handler tests for auth-critical flows #123
ci.yml
on: pull_request
Build
1m 16s
Matrix: test
Publish Dev Containers
0s
Publish Release (NuGet + Containers)
0s
Annotations
10 errors and 10 warnings
|
Build:
src/Tests/Identity.Tests/Handlers/RevokeSessionCommandHandlerTests.cs#L169
'Guid' does not contain a definition for 'Throws' and no accessible extension method 'Throws' accepting a first argument of type 'Guid' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/RevokeSessionCommandHandlerTests.cs#L153
'Task<bool>' does not contain a definition for 'ThrowsAsync' and no accessible extension method 'ThrowsAsync' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/GenerateTokenCommandHandlerTests.cs#L252
'Task<UserSessionDto>' does not contain a definition for 'ThrowsAsync' and no accessible extension method 'ThrowsAsync' accepting a first argument of type 'Task<UserSessionDto>' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/GenerateTokenCommandHandlerTests.cs#L225
Argument 1: cannot convert from 'object' to 'FSH.Framework.Eventing.Abstractions.IIntegrationEvent'
|
|
Build:
src/Tests/Identity.Tests/Handlers/GenerateTokenCommandHandlerTests.cs#L130
Argument 1: cannot convert from 'object' to 'FSH.Framework.Eventing.Abstractions.IIntegrationEvent'
|
|
Build:
src/Tests/Identity.Tests/Handlers/ChangePasswordCommandHandlerTests.cs#L236
'Guid' does not contain a definition for 'Throws' and no accessible extension method 'Throws' accepting a first argument of type 'Guid' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/ChangePasswordCommandHandlerTests.cs#L215
'Task' does not contain a definition for 'ThrowsAsync' and no accessible extension method 'ThrowsAsync' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/RegisterUserCommandHandlerTests.cs#L195
'Task<string>' does not contain a definition for 'ThrowsAsync' and no accessible extension method 'ThrowsAsync' accepting a first argument of type 'Task<string>' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/RevokeSessionCommandHandlerTests.cs#L169
'Guid' does not contain a definition for 'Throws' and no accessible extension method 'Throws' accepting a first argument of type 'Guid' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tests/Identity.Tests/Handlers/RevokeSessionCommandHandlerTests.cs#L153
'Task<bool>' does not contain a definition for 'ThrowsAsync' and no accessible extension method 'ThrowsAsync' accepting a first argument of type 'Task<bool>' could be found (are you missing a using directive or an assembly reference?)
|
|
Build:
src/Tools/CLI/Services/PackageUpdater.cs#L162
Modify 'CreateBackupAsync' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
|
Build:
src/Tools/CLI/Services/PackageUpdater.cs#L137
Modify 'UpdateManifestAsync' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
|
Build:
src/Tools/CLI/Services/PackageUpdater.cs#L103
Modify 'UpdatePackagesPropsAsync' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
|
Build:
src/Tools/CLI/Commands/VersionCommand.cs#L123
Avoid creating a new 'JsonSerializerOptions' instance for every serialization operation. Cache and reuse instances instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1869)
|
|
Build:
src/Tools/CLI/Services/VersionComparer.cs#L140
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'FSH.CLI.Services.VersionComparer.ParseVersionParts(string)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Build:
src/Tools/CLI/Services/VersionComparer.cs#L118
Remove this unused method parameter 'package'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
|
|
Build:
src/Tools/CLI/Services/VersionComparer.cs#L126
Merge this if statement with the enclosing one. (https://rules.sonarsource.com/csharp/RSPEC-1066)
|
|
Build:
src/Tools/CLI/Services/VersionComparer.cs#L34
Modify 'ParsePackagesProps' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
|
Build:
src/Tools/CLI/Services/PackageUpdater.cs#L9
Add a 'private' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
|
Build:
src/Tools/CLI/Scaffolding/TemplateRenderer.cs#L14
Remove this unread private field '_templateCache' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
|