Example #1
0
        public static void AssertReportExists(
            this CertificateTemplatesPage certificateTemplatesPage, string filePath)
        {
            Assert.IsTrue(File.Exists(filePath));
            FileInfo fileInfo = new FileInfo(filePath);

            Assert.IsTrue(fileInfo.Length > 0);
        }
Example #2
0
 public static void AssertAddedCertificateTemplateWithValidName(
     this CertificateTemplatesPage certificateTemplatesPage,
     string name)
 {
     Assert.AreEqual(name, certificateTemplatesPage.Grid.Rows.FirstOrDefault().Cells[ColumnNameNumber].TextContent);
 }
Example #3
0
 public static void AssertAddCertificateTemplateWithoutName(
     this CertificateTemplatesPage certificateTemplatesPage)
 {
     Assert.IsTrue(certificateTemplatesPage.NameValidationMessage.IsVisible());
     Assert.AreEqual(NameValidationMessage, certificateTemplatesPage.NameValidationMessage.TextContent);
 }
 public void TestInitialize()
 {
     this.certificateTemplatePage = new CertificateTemplatesPage(this.Manager);
 }