public void shouldMakeRequestAndStoreReturnedFormValues() { string url = "https://intranet.avegagroup.se/Util/login.aspx"; WebSession session = new WebSession(); var response = session.Get(url); Assert.IsNotNull(response.HtmlInputField["__VIEWSTATE"]); }
public void shouldPostLastFieldValuesWhenMakingAPost() { string url = "http://localhost:18983/ReWrite.aspx"; WebSession session = new WebSession(); session.Get(url); var postResponse = session.Post(url, new KeyValuePair<string, string>("Username", "yodiz")); Debug.WriteLine(postResponse.TextContent); Assert.AreEqual("yodiz", postResponse.HtmlInputField["username"]); }
public IntranetAvegaClientRepository(AvegaAuthentication avegaAuthentication) { AvegaAuthentication = avegaAuthentication; WebSession = new WebSession(); }