private void ValidateAmount() { int amount = _request.AmountAsNumber(); IntValidator validator = new IntValidator(nameof(_request.Amount), amount); validator.IsHigherThan(0); }
private void ValidateCaptureDay() { if (_request.CaptureDay == null) { return; } IntValidator validator = new IntValidator(nameof(_request.CaptureDay), _request.CaptureDay.Value); validator.IsHigherThan(0); validator.IsLowerThan(100); }
private void ValidateKeyVersion() { IntValidator validator = new IntValidator(nameof(_configuration.KeyVersion), _configuration.KeyVersion); validator.IsHigherThan(0); }