public override void HandleResponse(object connection) { HttpWebResponse response = connection as HttpWebResponse; if (response != null) { // AtomPub and browser binding authentication this.Cookies.Add(response.Cookies); } }
public void DoNotFailOnNonHTTPResponse() { using (var auth = new PersistentStandardAuthenticationProvider(this.storage.Object, this.url)) { auth.HandleResponse(new Mock<WebResponse>().Object); } }