コード例 #1
0
        public void ThenISeeNewPageOrder(string orderNumber)
        {
            pageInAnotherTab = Session.FindWindow("Отчет").FindXPath("/html");
            OrderMainPage orderMainPage = new OrderMainPage(pageInAnotherTab);

            Assert.AreEqual(orderMainPage.getOrderNumber(), orderNumber);
            //ScenarioContext.Current.Pending();
        }
コード例 #2
0
        public void ThenISeeNewPageOrderByExternalSampleNumber(string externalSampleNumber, string dateFromStr, string dateToStr)
        {
            pageInAnotherTab = Session.FindWindow("Отчет").FindXPath("/html");
            DBHelper      dbHelper      = new DBHelper();
            DateTime      dateFrom      = DateTime.ParseExact(dateFromStr, "dd/MM/yyyy", null);
            DateTime      dateTo        = DateTime.ParseExact(dateToStr, "dd/MM/yyyy", null);
            var           orderData     = dbHelper.getOrderDataByExternalSampleNumber(externalSampleNumber, dateFrom, dateTo);
            OrderMainPage orderMainPage = new OrderMainPage(pageInAnotherTab);

            Assert.AreEqual(orderMainPage.getOrderNumber(), orderData["orderNumber"]);
            //ScenarioContext.Current.Pending();
        }