| 12345678910111213141516171819202122 |
- using Quadarax.Foundation.Core.Data.Interface.Entity;
- using Quadarax.Foundation.Core.Value;
- namespace qdr.fnd.core.test
- {
- public abstract class ValidatorTest<TValidator, TDto> : DtoTest<TDto> where TDto : IDto, new()
- where TValidator : Validator<TDto>, new()
- {
- protected TValidator Validator { get; private set; } = null!;
- protected ValidatorContext Context { get; private set; } = null!;
- protected override void OnSetup()
- {
- base.OnSetup();
- Context = new ValidatorContext();
- Validator = new TValidator();
- }
- protected override void OnTearDown()
- {
- }
- }
- }
|