private static string Initialize(object target, IEnumerable<ValidationResult> validationResults)
        {
            _validationResult = new List<ValidationConsequence>();
            foreach (var result in validationResults)
            {
                var consequence = new ValidationConsequence(target.GetType(), target.GetType().FullName, result.ErrorMessage);
                _validationResult.Add(consequence);
            }

            return InitializeErrorMessage();
        }
        private static string Initialize(object target, IEnumerable <ValidationResult> validationResults)
        {
            _validationResult = new List <ValidationConsequence>();
            foreach (var result in validationResults)
            {
                var consequence = new ValidationConsequence(target.GetType(), target.GetType().FullName, result.ErrorMessage);
                _validationResult.Add(consequence);
            }

            return(InitializeErrorMessage());
        }
        private static string Initialize(object target, Type resourceType, params string[] resourceKeys)
        {
            var manager = new ResourceManager(resourceType);
            _validationResult = new List<ValidationConsequence>();
            foreach (var resourceKey in resourceKeys)
            {
                var message = manager.GetString(resourceKey, Thread.CurrentThread.CurrentUICulture);
                var consequence = new ValidationConsequence(target.GetType(), target.GetType().FullName, message);
                _validationResult.Add(consequence);
            }

            return InitializeErrorMessage();
        }
        private static string Initialize(object target, Type resourceType, params string[] resourceKeys)
        {
            var manager = new ResourceManager(resourceType);

            _validationResult = new List <ValidationConsequence>();
            foreach (var resourceKey in resourceKeys)
            {
                var message     = manager.GetString(resourceKey, Thread.CurrentThread.CurrentUICulture);
                var consequence = new ValidationConsequence(target.GetType(), target.GetType().FullName, message);
                _validationResult.Add(consequence);
            }

            return(InitializeErrorMessage());
        }