/// <inheritdoc /> /// <exception cref="System.ArgumentNullException"> /// The <paramref name="page" /> parameter is <c>null</c>. /// </exception> public void Initialize(IHtmlPage page) { if (page == null) { throw new ArgumentNullException("page"); } var location = page.Result.Outcomes.Last().Location; _wrapperPage = new HtmlPageWrapper(location); _wrapperPage.Initialize(page); }
/// <inheritdoc /> /// <exception cref="System.ArgumentNullException"> /// The <paramref name="browser" /> parameter is <c>null</c>. /// </exception> /// <exception cref="System.ArgumentNullException"> /// The <paramref name="response" /> parameter is <c>null</c>. /// </exception> /// <exception cref="System.ArgumentNullException"> /// The <paramref name="result" /> parameter is <c>null</c>. /// </exception> public void Initialize(IBrowser browser, HttpResponseMessage response, HttpResult result) { if (browser == null) { throw new ArgumentNullException("browser"); } if (response == null) { throw new ArgumentNullException("response"); } if (result == null) { throw new ArgumentNullException("result"); } var location = result.Outcomes.Last().Location; _wrapperPage = new HtmlPageWrapper(location); _wrapperPage.Initialize(browser, response, result); }