Ejemplo n.º 1
0
        public Result Process(Action action)
        {
            var validationResult = ValidateInput(action);

            if (!validationResult.IsSucceed)
            {
                return(validationResult);
            }
            var texts = textProvider.GetTexts();

            if (!texts.Any())
            {
                return(Result.Error("No files found or supported"));
            }
            ProcessTexts(texts, action);
            return(Result.Success($"{action} succeed"));
        }