示例#1
0
        public void ThenStockOnHandOfProductIsGreaterThan(string product, int qty)
        {
            AddSalesOrderPage addSalesOrderPage = new AddSalesOrderPage(_scenarioContext);

            addSalesOrderPage.ClickPrdLink(product);
            webDriver.SwitchTo().Window(webDriver.WindowHandles.Last());
            ProductPage productPage = new ProductPage(_scenarioContext);
            var         stockCount  = productPage.getNumberOfStockOnHand();

            Assert.IsTrue(stockCount > qty);
        }
 public AddSalesOrderSteps(ContextObject context)
 {
     _context           = context;
     _addSalesOrderPage = new AddSalesOrderPage(_context);
 }
示例#3
0
 public SalesSteps(ScenarioContext scenarioContext)
 {
     this._scenarioContext = scenarioContext;
     webDriver             = scenarioContext.Get <IWebDriver>("currentDriver");
     addSalesOrderPage     = new AddSalesOrderPage(_scenarioContext);
 }