コード例 #1
0
        public void ThenISeeOrdersByOrderNumberPart(string orderNumberPart)
        {
            SearchByOrderNumberPage searchByOrderNumberPage = new SearchByOrderNumberPage();
            DBHelper dbHelper         = new DBHelper();
            var      orderCountFromDB = dbHelper.getOrderCountByOrderNumberPart(orderNumberPart);

            Assert.AreEqual(searchByOrderNumberPage.getCountOfOrders(), orderCountFromDB);
            //ScenarioContext.Current.Pending();
        }
コード例 #2
0
        public void ThenISeeOrdersByExternalSampleNumberPart(string externalSampleNumberPart, string dateFromStr, string dateToStr)
        {
            SearchByOrderNumberPage searchByOrderNumberPage = new SearchByOrderNumberPage();
            DBHelper dbHelper         = new DBHelper();
            DateTime dateFrom         = DateTime.ParseExact(dateFromStr, "dd/MM/yyyy", null);
            DateTime dateTo           = DateTime.ParseExact(dateToStr, "dd/MM/yyyy", null);
            var      orderCountFromDB = dbHelper.getOrderCountByExternalSampleNumberPart(externalSampleNumberPart, dateFrom, dateTo);

            Assert.AreEqual(searchByOrderNumberPage.getCountOfOrders(), orderCountFromDB);
            //ScenarioContext.Current.Pending();
        }