Esempio n. 1
0
 public void LinkTest_AdminSecuredDefaultPage_ShouldPassIfFound()
 {
     string urlToTest = testContextInstance.DataRow["AdminSecuredDefaultPage"].ToString();
     string urlToLogin = testContextInstance.DataRow["LoginPage"].ToString();
     WebRequestHelper webRequestHelper = new WebRequestHelper(urlToLogin, "any", "any");
     HttpStatusCode result = webRequestHelper.GetWebpageStatusCode(new Uri(urlToTest), RequiredAccess.Admin);
     Assert.IsTrue(result == HttpStatusCode.OK, result.ToString());
 }
Esempio n. 2
0
 public void LinkTest_ListingPage_ShouldPassIfFound()
 {
     string urlToTest = testContextInstance.DataRow["EmployeeListingPage"].ToString();
     HttpStatusCode result = new WebRequestHelper().GetWebpageStatusCode(new Uri(urlToTest), RequiredAccess.Public);
     Assert.IsTrue(result == HttpStatusCode.OK, result.ToString());
 }