public void Set(List <SendReversalValidationRequest> validationRequests) { var isFirstSet = validationRequests.Any() && !ValidationRequests.Any(); ValidationRequests.AddRange(validationRequests); if (isFirstSet) { SetExecutionOrder(nameof(ValidationRequests)); } }
public void Set(SendReversalValidationRequest validationRequest) { var isFirstSet = !ValidationRequests.Any(); ValidationRequests.Add(validationRequest); if (isFirstSet) { SetExecutionOrder(nameof(ValidationRequests)); } }