Exemplo n.º 1
0
        public void ThenTheBookIsTheSameAsOnTheSearchPage()
        {
            Book bookFromSearchPage = ScenarioContext.Current.Get <Book>();
            Book actualBook         = basketPage.GetBook();

            AssertionsManager.AreEqual(driver, extentTest, bookFromSearchPage.Title, actualBook.Title, $"Book title is: {actualBook.Title}");
            AssertionsManager.AreEqual(driver, extentTest, bookFromSearchPage.Format, actualBook.Format, $"Book format is: {actualBook.Format.ToString()}");
            AssertionsManager.AreEqual(driver, extentTest, bookFromSearchPage.Price, actualBook.Price, $"Book price is: {actualBook.Price}");
        }