Skip to content

Updated the code to return an E90 when no decision finder could be found #620

Updated the code to return an E90 when no decision finder could be found

Updated the code to return an E90 when no decision finder could be found #620

Triggered via pull request February 14, 2025 07:39
Status Failure
Total duration 6m 11s
Artifacts

check-pull-request.yml

on: pull_request
Run Pull Request Checks
6m 1s
Run Pull Request Checks
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
Btms.Business.Tests.Services.Decisions.DecisionServiceTests.When_processing_unknown_decisions_Then_should_not_throw: Btms.Business.Tests/Services/Decisions/DecisionServiceTests.cs#L86
Did not expect System.Exception, but found System.ArgumentOutOfRangeException: Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'documentCode') at Btms.Business.Services.Decisions.DecisionMessageBuilder.MapToChedType(String documentCode) in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionMessageBuilder.cs:line 118 at Btms.Business.Services.Decisions.DecisionMessageBuilder.BuildDecisionReasons(Items item, DocumentDecisionResult maxDecisionResult) in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionMessageBuilder.cs:line 99 at Btms.Business.Services.Decisions.DecisionMessageBuilder.BuildChecks(Items item, IGrouping`2 itemDecisions)+MoveNext() in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionMessageBuilder.cs:line 77 at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) at Btms.Business.Services.Decisions.DecisionMessageBuilder.BuildItems(Movement movement, IGrouping`2 movementDecisions)+MoveNext() in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionMessageBuilder.cs:line 60 at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) at Btms.Business.Services.Decisions.DecisionMessageBuilder.Build(DecisionContext decisionContext, DecisionResult decisionResult) in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionMessageBuilder.cs:line 21 at Btms.Business.Services.Decisions.DecisionService.Process(DecisionContext decisionContext, CancellationToken cancellationToken) in /home/runner/work/btms-backend/btms-backend/Btms.Business/Services/Decisions/DecisionService.cs:line 20 at FluentAssertions.Specialized.AsyncFunctionAssertions`2.NotThrowAsync[TException](String because, Object[] becauseArgs).
Run Pull Request Checks
Process completed with exit code 1.
Run Pull Request Checks: TestGenerator.IntegrationTesting.Backend/MultipleScenarioGeneratorBaseTest.cs#L11
Cannot convert null literal to non-nullable reference type.
Run Pull Request Checks: TestGenerator.IntegrationTesting.Backend/MultipleScenarioGeneratorBaseTest.cs#L23
Non-nullable field 'LoadedData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.