Beispiel #1
0
        public void SearchLicensedProductInCoursespace(
            License.LicenseTypeEnum licenseTypeEnum)
        {
            Logger.LogMethodEntry("ProductLicense",
                                  "SearchLicensedProductInCoursespace",
                                  base.IsTakeScreenShotDuringEntryExit);
            //To select the product stored in memory
            License license = License.Get(licenseTypeEnum);

            //Search Licensed Product
            new LicensesPage().SearchLicensedProduct(license.Name);
            Logger.LogMethodExit("ProductLicense",
                                 "SearchLicensedProductInCoursespace",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Beispiel #2
0
        public void VerifySearchedLicensedProduct(
            License.LicenseTypeEnum licenseTypeEnum)
        {
            Logger.LogMethodEntry("ProductLicense",
                                  "VerifySearchedLicensedProduct",
                                  base.IsTakeScreenShotDuringEntryExit);
            //To select the product stored in memory
            License license = License.Get(licenseTypeEnum);

            // Assert Licensed Product Search
            Logger.LogAssertion("VerifyProductSearch", ScenarioContext.
                                Current.ScenarioInfo.Title, () => Assert.AreEqual(license.Name,
                                                                                  new LicensesPage().GetLicensedProduct()));
            Logger.LogMethodExit("ProductLicense",
                                 "VerifySearchedLicensedProduct",
                                 base.IsTakeScreenShotDuringEntryExit);
        }