public void Setup() { _service = new WebPurifyService(); _request = new WebPurifyRequest(_apiUrl, _apikey, _service); }
/// <summary> /// Initializes a new instance of the <see cref="WebPurifyRequest"/> class. /// </summary> /// <param name="url"> /// The url. /// </param> /// <param name="key"> /// The key. /// </param> public WebPurifyRequest(string url, string key) { this.url = url; this.key = key; this.webPurifyService = new WebPurifyService(); }
/// <summary> /// Initializes a new instance of the <see cref="WebPurifyRequest"/> class. /// </summary> /// <param name="url"> /// The url. /// </param> /// <param name="key"> /// The key. /// </param> /// <param name="profanityFilterService"> /// The profanity filter service. /// </param> public WebPurifyRequest(string url, string key, IWebPurifyService profanityFilterService) { this.url = url; this.key = key; this.webPurifyService = profanityFilterService; }