Skip to content

Commit

Permalink
Merge pull request #888 from smbc-digital/revertIntegrityCheck
Browse files Browse the repository at this point in the history
revert(GeneratedIdConfigurationCheck): comment out added check to inv…
  • Loading branch information
HarryWoodall authored Nov 9, 2023
2 parents 3c3d665 + 6f2f83a commit 27c9041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public IntegrityCheckResult Validate(FormSchema schema)
"Generated Id Configuration Check, " +
"'GeneratedReferenceNumberMapping' and 'ReferencePrefix' must both have a value.");

if (schema.Pages.Any(page => page.Behaviours.Any(behaviour => behaviour.BehaviourType.Equals(EBehaviourType.SubmitWithoutSubmission))) && !schema.GenerateReferenceNumber)
result.AddFailureMessage(
"Generated Id Configuration Check, if using SubmitFormNoAction then 'GeneratedReferenceNumber' must be true.");
//if (schema.Pages.Any(page => page.Behaviours.Any(behaviour => behaviour.BehaviourType.Equals(EBehaviourType.SubmitWithoutSubmission))) && !schema.GenerateReferenceNumber)
// result.AddFailureMessage(
// "Generated Id Configuration Check, if using SubmitFormNoAction then 'GeneratedReferenceNumber' must be true.");

return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void CheckGeneratedIdConfiguration_DoesNotThrow_ApplicationException_Gene
Assert.DoesNotContain(IntegrityChecksConstants.FAILURE, result.Messages);
}

[Fact]
[Fact(Skip = "Skipped for investigation")]
public void CheckGeneratedIdConfiguration_Throw_ApplicationException_WhenGenerateReferenceNumber_IsFalse_And_SubmitWithoutSubmission_IsUsed()
{
// Arrange
Expand Down

0 comments on commit 27c9041

Please sign in to comment.