Bifrost.FluentValidation.Commands.CommandValidatorProvider.InitializeCommandValidators C# (CSharp) Method

InitializeCommandValidators() static private method

static private InitializeCommandValidators ( ) : void
return void
        void InitializeCommandValidators()
        {
            _inputCommandValidators = new Dictionary<Type, Type>();
            _businessCommandValidators = new Dictionary<Type, Type>();

            var commandInputValidators = _typeDiscoverer.FindMultiple(_commandInputValidatorType);
            var commandBusinessValidators = _typeDiscoverer.FindMultiple(_commandBusinessValidatorType);

            commandInputValidators.ForEach(type => RegisterCommandValidator(type, _inputCommandValidators));
            commandBusinessValidators.ForEach(type => RegisterCommandValidator(type, _businessCommandValidators));
        }