Exemplo n.º 1
0
        public ITransformer <string, string, string> Create(string arg)
        {
            var key = arg.ToLowerInvariant().Substring(0, 3);

            return(MAP.ContainsKey(key) ? MAP[key] : throw new InvalidOperationException($"Unknown command: {arg}"));
        }