Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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));
 }
Ejemplo n.º 4
0
 /// <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));
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }