Пример #1
0
        public void Set(List <SendReversalValidationRequest> validationRequests)
        {
            var isFirstSet = validationRequests.Any() && !ValidationRequests.Any();

            ValidationRequests.AddRange(validationRequests);
            if (isFirstSet)
            {
                SetExecutionOrder(nameof(ValidationRequests));
            }
        }
Пример #2
0
        public void Set(SendReversalValidationRequest validationRequest)
        {
            var isFirstSet = !ValidationRequests.Any();

            ValidationRequests.Add(validationRequest);
            if (isFirstSet)
            {
                SetExecutionOrder(nameof(ValidationRequests));
            }
        }