Skip to content

test(237003): replace Moq with NSubstitute in C&S unit tests #3804

test(237003): replace Moq with NSubstitute in C&S unit tests

test(237003): replace Moq with NSubstitute in C&S unit tests #3804

Triggered via pull request February 17, 2025 11:57
Status Failure
Total duration 3m 42s
Artifacts

code-pr-check.yml

on: pull_request
Lint & Commit
1m 2s
Lint & Commit
Build database upgrader
29s
Build database upgrader
Run javascript tests
14s
Run javascript tests
Build and run unit tests
2m 23s
Build and run unit tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 13 warnings
Build and run unit tests
Failed test were found and 'fail-on-error' option is set to true
Build database upgrader
The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.
Build database upgrader
The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.
Build and run unit tests
The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.
Build and run unit tests: src/Dfe.PlanTech.Domain/Content/Models/ContentSupport/ContentItem.cs#L11
'ContentItem.Data' hides inherited member 'ContentItemBase.Data'. Use the new keyword if hiding was intended.
Build and run unit tests: src/Dfe.PlanTech.Domain/Content/Models/ContentSupport/ContentItemBase.cs#L9
'ContentItemBase.Data' hides inherited member 'ContentBase.Data'. Use the new keyword if hiding was intended.
Build and run unit tests: src/Dfe.PlanTech.Domain/Questionnaire/Interfaces/IRecommendationSection.cs#L7
Reduce the number of generic parameters in the 'IRecommendationSection' interface to no more than the 2 authorized. (https://rules.sonarsource.com/csharp/RSPEC-2436)
Build and run unit tests: src/Dfe.PlanTech.Domain/Content/Interfaces/IRichTextContent.cs#L40
Reduce the number of generic parameters in the 'IRichTextContent' interface to no more than the 2 authorized. (https://rules.sonarsource.com/csharp/RSPEC-2436)
Build and run unit tests: src/Dfe.PlanTech.Domain/Questionnaire/Interfaces/ISubTopicRecommendation.cs#L7
Reduce the number of generic parameters in the 'ISubTopicRecommendation' interface to no more than the 2 authorized. (https://rules.sonarsource.com/csharp/RSPEC-2436)
Build and run unit tests: src/Dfe.PlanTech.Domain/Content/Models/Options/TextRendererOptions.cs#L22
Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
Build and run unit tests: src/Dfe.PlanTech.Application/Responses/Queries/GetLatestResponsesQuery.cs#L11
Parameter 'IPlanTechDbContext db' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.
Build and run unit tests: src/Dfe.PlanTech.Application/Content/Queries/GetContentSupportPageQuery.cs#L28
Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
Build and run unit tests: src/Dfe.PlanTech.Application/Content/Queries/GetPageQuery.cs#L56
Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
Build and run unit tests
Cache not found for keys: Linux-sonar, Linux-sonar