Skip to content

Commit

Permalink
chroe(apps) : added offer-assigned-Documents and testcasees
Browse files Browse the repository at this point in the history
Ref: CPLP-3087
  • Loading branch information
VPrasannaK94 committed Sep 28, 2023
1 parent 86fc011 commit c21c3a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1462,10 +1462,16 @@ public async Task GetActiveOfferDocumentTypeDataAsync_ReturnsExpectedResult()
OfferTypeId.APP, activeDocumentType).ToListAsync().ConfigureAwait(false);

// Assert
result.Should().NotBeNull().And.HaveCount(1).And.Satisfy(
result.Should().NotBeNull().And.HaveCount(3).And.Satisfy(
x => x.DocumentId == new Guid("e020787d-1e04-4c0b-9c06-bd1cd44724b2") &&
x.DocumentName == "Default_App_Image.png" &&
x.DocumentTypeId == DocumentTypeId.APP_IMAGE
x.DocumentTypeId == DocumentTypeId.APP_IMAGE,
x => x.DocumentId == new Guid("0d68c68c-d689-474c-a3be-8493f99feab2") &&
x.DocumentName == "AdditionalServiceDetails.pdf" &&
x.DocumentTypeId == DocumentTypeId.ADDITIONAL_DETAILS,
x => x.DocumentId == new Guid("3291cae8-3c7b-4862-8cec-93ea0dc8c61e") &&
x.DocumentName == "InactiveDocument.pdf" &&
x.DocumentTypeId == DocumentTypeId.ADDITIONAL_DETAILS
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@
{
"offer_id": "ac1cf001-7fbc-1f2f-817f-bce0000c0001",
"document_id": "3291cae8-3c7b-4862-8cec-93ea0dc8c61e"
},
{
"offer_id": "ac1cf001-7fbc-1f2f-817f-bce0572c0007",
"document_id": "0d68c68c-d689-474c-a3be-8493f99feab2"
},
{
"offer_id": "ac1cf001-7fbc-1f2f-817f-bce0572c0007",
"document_id": "3291cae8-3c7b-4862-8cec-93ea0dc8c61e"
}
]

0 comments on commit c21c3a6

Please sign in to comment.