Esempio n. 1
0
        public string PerformAction(string data, string filename)
        {
            IFile file = null;

            if (dataGenerator.SizeGenerator.Contains(data))
            {
                file = sizeProperty;
            }
            else if (dataGenerator.VersionGenrator.Contains(data))
            {
                file = versionProperty;
            }
            else
            {
                throw new Exception($"No Such Data with {data} Present");
            }

            return(file.Actions(filename));
        }