private void ValidateRequestParams() { for (var i = 0; i < _requests.Length; i++) { try { RequiredParamsValidator.Validate(_requests[i].Parameters); CompatibilityValidator.Validate(_requests[i].Parameters, _requests[i], _requests[i].HitType); } catch (Exception ex) { throw new ApplicationException($"Parameters validation failed for request with index = {i} with: {ex.Message}"); } } }
protected virtual void ValidateRequestParams() { RequiredParamsValidator.Validate(Parameters); CompatibilityValidator.Validate(Parameters, this, HitType); }
private void ValidateRequestParams() { RequiredParamsValidator.Validate(_parameters); }