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

            Assert.AreEqual(user.FirstName, homePageAction.GetUserName());
        }
コード例 #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();
        }