public WordSanitizer(WordCloudSettings settings) { if (settings.ExcludedWords == null) { throw new ArgumentNullException(nameof(settings.ExcludedWords)); } if (settings.WordMappings == null) { throw new ArgumentNullException(nameof(settings.WordMappings)); } this.settings = settings; }
public void Initialize() { var settings = new WordCloudSettings { ExcludedWords = new List <string> { "excluded" }, WordMappings = new Dictionary <string, string> { { "input", "output" } } }; this.SetDependency(settings); }