public void ValidateSuccessLogin(User user) { var loginAction = new LoginAction(); var homePageAction = loginAction.Authentication(user); Assert.AreEqual(user.FirstName, homePageAction.GetUserName()); }
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(); }