public StoreInfo Verify(string query, FindStorePage.Store store, bool isNextRequired = false)
 {
     FindStorePage.Navigate();
     FindStorePage.PerformSearch(query);
     if (isNextRequired) FindStorePage.ClickNext();
     FindStorePage.SelectStoreByIndex(store);
     return StorePage.StoreInfo;
 }
Пример #2
0
        public void PerformTestWithoutFacade()
        {
            var findStorePage = new FindStorePage();
            var storePage = new StorePage();
            var store = new StoreInfo
            {
                Name = "Apple Store, Boylston Street",
                Address = "815 Boylston Street",
                City = "Boston",
                State = "MA",
                Zip = "02116",
                Phone = "(617) 385-9400"
            };

            findStorePage.Navigate();
            findStorePage.PerformSearch("Boston, MA");
            findStorePage.SelectStoreByIndex(FindStorePage.Store.A);

            Assert.AreEqual(store, storePage.StoreInfo);
        }