public SearchToken(IWildcardMatch wildcardMatch, string filter) { if (wildcardMatch == null) { throw new ArgumentNullException(nameof(wildcardMatch)); } if (string.IsNullOrEmpty(filter)) { throw new ArgumentNullException(nameof(filter)); } this.Filter = filter; this.Wildcard = wildcardMatch; this.Wildcard.Initialize(filter); }
public SearchMatchService(IFileTypeResolver fileTypeResolver, IWildcardMatch wildcardMatch) { _fileTypeResolver = fileTypeResolver; _wildcardMatch = wildcardMatch; }