public DocType GetDocType(string fileName)
        {
            var fileAssociationPair = FileAssociations.EnumIndexedValues().FirstOrDefault(pair => HandlerMatch(pair.Value, fileName));

            if (fileAssociationPair.Value != null)
            {
                return(fileAssociationPair.Value.DocType);
            }

            throw new NotSupportedException();
        }
 public bool IsSupportedFile(string fileName)
 {
     return(FileAssociations.EnumIndexedValues().Any(pair => HandlerMatch(pair.Value, fileName)));
 }