private bool SearchingSupported(SearchActionName searchAction) { return(!unavailableActions.Keys.Contains(searchAction)); }
public static IDictionary <string, string> Without(this IDictionary <string, string> dictionary, SearchActionName action) { dictionary.Remove(action.ToString()); return(dictionary); }
private ISearcher <TParameters> GetSearcher <TParameters>(SearchActionName action, ISearcher <TParameters> functionalSearcher) where TParameters : ISearchParameters { return(SearchingSupported(action)? functionalSearcher : new NotSupportedSearcher <TParameters>(unavailableActions[action].GetErrorMessage())); }