Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@
}
}
},
{
"RuleName": "3601.ValidatePrimaryCareProvider.BSSelect.NonFatal",
"Expression": "ValidPrimaryCareProvider",
"Actions": {
"OnFailure": {
"Name": "OutputExpression",
"Context": {
"Expression": "\"Invalid primary care provider GP practice code\""
}
}
}
},
{
"RuleName": "45.GPPracticeCodeDoesNotExist.BSSelect.NonFatal",
"LocalParams": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,45 +217,6 @@ public async Task Run_CurrentPostingAndPrimaryProvider_ReturnNoContent(string cu
Assert.IsFalse(body.Contains("45.GPPracticeCodeDoesNotExist.BSSelect.NonFatal"));
}

[TestMethod]
[DataRow("InvalidPCP")]
public async Task Run_ValidatePrimaryCareProvider_ReturnValidationException(string primaryCareProvider)
{
// Arrange
_requestBody.NewParticipant.PrimaryCareProvider = primaryCareProvider;
var json = JsonSerializer.Serialize(_requestBody);
SetUpRequestBody(json);

_lookupValidation.Setup(x => x.CheckIfPrimaryCareProviderExists(It.IsAny<string>())).Returns(false);

// Act
var response = await _sut.RunAsync(_request.Object);
string body = await AssertionHelper.ReadResponseBodyAsync(response);

// Assert
StringAssert.Contains(body, "3601.ValidatePrimaryCareProvider.BSSelect.NonFatal");
}

[TestMethod]
[DataRow("ValidPCP")]
[DataRow(null)]
public async Task Run_ValidatePrimaryCareProvider_ReturnNoContent(string primaryCareProvider)
{
// Arrange
_requestBody.NewParticipant.PrimaryCareProvider = primaryCareProvider;
var json = JsonSerializer.Serialize(_requestBody);
SetUpRequestBody(json);

_lookupValidation.Setup(x => x.CheckIfPrimaryCareProviderExists(It.IsAny<string>())).Returns(primaryCareProvider == "ValidPCP");

// Act
var response = await _sut.RunAsync(_request.Object);
string body = await AssertionHelper.ReadResponseBodyAsync(response);

// Assert
Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
}

#region Validate BSO Code (Rule 54)
[TestMethod]
[DataRow("RPR", "", "", Actions.Amended)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// This equates to "@epic1-" tags, configured in the package.json at the playwright-tests root location.


export const runnerBasedEpic1TestScenariosAdd = "@DTOSS-3648-01|@DTOSS-3661-01|@DTOSS-3662-01|@DTOSS-3197-01|@DTOSS-3744-01|@DTOSS-3660-01";
export const runnerBasedEpic1TestScenariosAdd = "@DTOSS-3648-01|@DTOSS-3661-01|@DTOSS-3197-01|@DTOSS-3744-01|@DTOSS-3660-01";
export const runnerBasedEpic1TestScenariosAmend = "@DTOSS-3217-01|@DTOSS-3661-02|@DTOSS-3662-02|@DTOSS-3217-02";

Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@



export const runnerBasedEpic123TestScenariosAdd = "@DTOSS-6256-01|@DTOSS-6406-01|@DTOSS-7960-01";
export const runnerBasedEpic123TestScenariosAdd = "@DTOSS-6256-01|@DTOSS-7960-01";
export const runnerBasedEpic123TestScenariosAddAmend = "@DTOSS-6257-01|@DTOSS-6407-01";
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// This equates to "@epic2-" tags, configured in the package.json at the playwright-tests root location.
//

export const runnerBasedEpic2TestScenariosAdd = "@DTOSS-5104-01|@DTOSS-5613-01|@DTOSS-4395-01|@DTOSS-4397-01|@DTOSS-4562-01|@DTOSS-4563-01|@DTOSS-3206-01|@DTOSS-4089-01|@DTOSS-4102-01|@DTOSS-4088-01|@DTOSS-4103-01|@DTOSS-4092-01|@DTOSS-4099-01";
export const runnerBasedEpic2TestScenariosAdd = "@DTOSS-5104-01|@DTOSS-5613-01|@DTOSS-4395-01|@DTOSS-4397-01|@DTOSS-4562-01|@DTOSS-4563-01|@DTOSS-3206-01|@DTOSS-4089-01|@DTOSS-4102-01|@DTOSS-4088-01|@DTOSS-4092-01|@DTOSS-4099-01";

export const runnerBasedEpic2TestScenariosAmend = "@DTOSS-5605-01|@DTOSS-4396-01|@DTOSS-5419-01|@DTOSS-4068-01|@DTOSS-4070-01|@DTOSS-4564-01|@DTOSS-4091-01|@DTOSS-4561-01|@DTOSS-5418-01|@DTOSS-4090-01|@DTOSS-4384-01|@DTOSS-4094-01|@DTOSS-4219-01|@DTOSS-4383-01|@DTOSS-4220-01";
export const runnerBasedEpic2TestScenariosAmend = "@DTOSS-5605-01|@DTOSS-4396-01|@DTOSS-5419-01|@DTOSS-4068-01|@DTOSS-4070-01|@DTOSS-4564-01|@DTOSS-4561-01|@DTOSS-5418-01|@DTOSS-4090-01|@DTOSS-4094-01|@DTOSS-4219-01|@DTOSS-4383-01|@DTOSS-4220-01";
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
//
// This equates to "@epic3-med" tags, configured in the package.json at the playwright-tests root location.

export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01|@DTOSS-4975-01|@DTOSS-6325-01|@DTOSS-5374-01|@DTOSS-6320-01|@DTOSS-5582-01|@DTOSS-9337-01"

export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01|@DTOSS-4975-01|@DTOSS-6325-01|@DTOSS-5374-01|@DTOSS-6320-01|@DTOSS-5578-01|@DTOSS-5582-01|@DTOSS-9337-01"

export const runnerBasedEpic3MedTestScenariosAmend = "@DTOSS-5286-01|@DTOSS-5579-01|@DTOSS-5799-01|@DTOSS-5800-01|@DTOSS-5583-01|@DTOSS-9337-01"
export const runnerBasedEpic3MedTestScenariosAmend = "@DTOSS-5286-01|@DTOSS-5799-01|@DTOSS-5800-01|@DTOSS-5583-01|@DTOSS-9337-01"
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
// This equates to "@epic4d-" tags, configured in the package.json at the playwright-tests root location.


export const runnerBasedEpic4dTestScenariosAdd = "@DTOSS-9492-01|@DTOSS-9494-01|@DTOSS-9496-01|@DTOSS-9498-01";
export const runnerBasedEpic4dTestScenariosAmend = "@DTOSS-9493-01|@DTOSS-9495-01|@DTOSS-9497-01|@DTOSS-9499-01";
export const runnerBasedEpic4dTestScenariosAdd = "@DTOSS-9492-01|@DTOSS-9496-01|@DTOSS-9498-01";
export const runnerBasedEpic4dTestScenariosAmend = "@DTOSS-9493-01|@DTOSS-9497-01|@DTOSS-9499-01";

This file was deleted.

Loading
Loading