/// <summary> /// Same Text Ignore Case ? /// </summary> /// <param name="expectedResultText"></param> /// <param name="actualResultText"></param> /// <returns></returns> public bool SameTextIgnoreCase(string expectedResultText, string actualResultText) { var expectedResult = expectedResultText.Trim(); var actualResult = actualResultText.Trim(); _log.Info("Confirm string without case, expected result text: " + expectedResult + ", actual result text: " + actualResult); return(AssertionService.SameTextIgnoreCase(expectedResult, actualResult)); }
/// <summary> /// Enable Funtion By Id ? /// </summary> /// <param name="enableOption"></param> /// <param name="id"></param> /// <returns result="true/false"></returns> public bool ConfirmFuntionEnable(string enableOption, string cssSelector) { return(AssertionService.EnableFuntion(enableOption, cssSelector)); }
/// <summary> /// Include Text ? /// </summary> /// <param name="fullText"></param> /// <param name="containText"></param> /// <returns></returns> public bool IncludeText(string fullText, string containText) { _log.Info("Confirm with the contaon text: " + containText + " in: " + fullText); return(AssertionService.IncludeText(fullText, containText)); }
/// <summary> /// Same Url ? /// </summary> /// <param name="expected"></param> /// <returns></returns> public bool SameUrl(string expected) { _log.Info("Confirm with URL: " + expected); return(AssertionService.SameUrl(expected)); }
public static void Main(string[] args) { SourceService sourceService = new SourceService(); sourceService.Url = "http://*****:*****@WebFault."); } catch (SoapException e) { //fall through } relationshipService.Touch(); AssertionService assertionService = new AssertionService(); assertionService.Url = "http://localhost:8080/full/soap-services/AssertionServiceService"; Assertion[] assertions = assertionService.ReadAssertions(); Assertion gender = assertions[0]; Assert.AreEqual("gender", gender.Id); Assert.IsTrue(gender is Gender); Assertion name = assertions[1]; Assert.AreEqual("name", name.Id); Assert.IsTrue(name is Name); }
public static void Main(string[] args) { SourceService sourceService = new SourceService("http://*****:*****@WebFault."); } catch (SoapException e) { //fall through } relationshipService.Touch(); AssertionService assertionService = new AssertionService("http://localhost:8080/full/AssertionServiceService"); Assertion[] assertions = assertionService.ReadAssertions(); Assertion gender = assertions[0]; Assert.AreEqual("gender",gender.Id); Assert.IsTrue(gender is Gender); Assertion name = assertions[1]; Assert.AreEqual("name",name.Id); Assert.IsTrue(name is Name); }