Beispiel #1
0
        public void ValidateSuccessLogin(User user)
        {
            var loginAction    = new LoginAction();
            var homePageAction = loginAction.Authentication(user);

            Assert.AreEqual(user.FirstName, homePageAction.GetUserName());
        }
Beispiel #2
0
        public void AddItemToShopCart(User user, string itemName)
        {
            var loginAction    = new LoginAction();
            var homePageAction = loginAction.Authentication(user);

            homePageAction.MakeSearchOfItem(itemName);
            homePageAction.AddItemToShopCart();

            Assert.IsTrue(homePageAction.IsShopCartDialogOpen(), "IsShopCartDialogOpen:");
            homePageAction.CloseShopCartDialogOpen();
        }