-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from Judopay/UpdateFluentValidation-JR-7629-0
JR-7629 : Update FluentValidation dependency from 8.1.2 to 11.8.0
- Loading branch information
Showing
11 changed files
with
62 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using FluentValidation; | ||
using JudoPayDotNet.Models; | ||
|
||
namespace JudoPayDotNet.Validation | ||
{ | ||
internal class PaymentReceiptValidator : AbstractValidator<PaymentReceiptModel> | ||
{ | ||
public PaymentReceiptValidator() | ||
{ | ||
RuleFor(model => model.ReceiptId) | ||
.NotEmpty().WithMessage("The response must contain a receipt ID"); | ||
|
||
RuleFor(model => model.Type) | ||
.NotEmpty().WithMessage("The response must contain an Type"); | ||
|
||
RuleFor(model => model.JudoId) | ||
.NotEmpty().WithMessage("The response must contain an Judo Id"); | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
JudoPayDotNet/Validation/PaymentRequiresThreeDSecureTwoValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using FluentValidation; | ||
using JudoPayDotNet.Models; | ||
|
||
namespace JudoPayDotNet.Validation | ||
{ | ||
internal class PaymentRequiresThreeDSecureTwoValidator : AbstractValidator<PaymentRequiresThreeDSecureTwoModel> | ||
{ | ||
public PaymentRequiresThreeDSecureTwoValidator() | ||
{ | ||
RuleFor(model => model.ReceiptId) | ||
.NotEmpty().WithMessage("The response must contain a receipt ID"); | ||
|
||
RuleFor(model => model.MethodUrl) | ||
.NotEmpty().WithMessage("The response must contain a MethodUrl"); | ||
|
||
RuleFor(model => model.Version) | ||
.NotEmpty().WithMessage("The response must contain a Version"); | ||
|
||
RuleFor(model => model.Md) | ||
.NotEmpty().WithMessage("The response must contain a Md"); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
JudoPayDotNetTests/Model/Validations/PaymentReceiptValidation.cs
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
JudoPayDotNetTests/Model/Validations/PaymentRequiresThreeDSecureTwoModelValidator.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
JudoPayDotNetTests/Model/Validations/TransactionResultBaseValidation.cs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
JudoPayDotNetTests/Model/Validations/TransactionResultValidation.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters