Skip to content

Commit b1a6998

Browse files
fix: changing rule category on rule 54 and 12 to match requirements (#1612)
* fix: changing rule category on rule 54 and 12 to match requierments * fix: changing rule category on rule 54 and 12 to match requierments
1 parent b407917 commit b1a6998

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation/Breast_Screening_lookupRules.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"Rules": [
1515
{
16-
"RuleName": "12.BlockedParticipant.BSSelect.Fatal",
16+
"RuleName": "12.BlockedParticipant.Non.Fatal",
1717
"Expression": "existingParticipant.BlockedFlag != \"1\"",
1818
"Actions": {
1919
"OnFailure": {
@@ -56,7 +56,7 @@
5656
"WorkflowName": "AMENDED",
5757
"Rules": [
5858
{
59-
"RuleName": "54.ValidateBsoCode.NBO.NonFatal",
59+
"RuleName": "54.ValidateBsoCode.Non.NonFatal",
6060
"LocalParams": [
6161
{
6262
"Name": "reasonForRemoval",

tests/UnitTests/ScreeningValidationServiceTests/LookupValidation/LookupValidationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public async Task Run_invalidParticipant_ValidateBsoCodeRuleFails(string ReasonF
145145
string body = await AssertionHelper.ReadResponseBodyAsync(response);
146146

147147
// Assert
148-
StringAssert.Contains(body, "54.ValidateBsoCode.NBO.NonFatal");
148+
StringAssert.Contains(body, "54.ValidateBsoCode.Non.NonFatal");
149149
}
150150

151151
[TestMethod]
@@ -232,7 +232,7 @@ public async Task Run_AmendedRFRParticipantHasInvalidPostcodeAndGpPractice_Retur
232232
string body = await AssertionHelper.ReadResponseBodyAsync(response);
233233

234234
// Assert
235-
StringAssert.Contains(body, "54.ValidateBsoCode.NBO.NonFatal");
235+
StringAssert.Contains(body, "54.ValidateBsoCode.Non.NonFatal");
236236
}
237237

238238
[TestMethod]
@@ -306,7 +306,7 @@ public async Task Run_BlockedParticipant_ReturnValidationException()
306306
string body = await AssertionHelper.ReadResponseBodyAsync(response);
307307

308308
// Assert
309-
StringAssert.Contains(body, "12.BlockedParticipant.BSSelect.Fatal");
309+
StringAssert.Contains(body, "12.BlockedParticipant.Non.Fatal");
310310
}
311311

312312
[TestMethod]

0 commit comments

Comments
 (0)