public void GivenJoeHasAUserAccount(string username, string password) { // Currently bugged due to https://github.com/csf-dev/CSF.Screenplay/issues/126 //testRunner.Value.Given($"April adds a user account with the username '{username}' and password '{password}'"); GivenAprilAddsAUserAccount(username, password); var joe = cast.Get <Joe>(); joe.IsAbleTo(LogInWithAUserAccount.WithTheUsername(username).AndThePassword(password)); }
public void GivenYoussefCanLogInWithAUsernameAndPassword() { var youssef = cast.Get <Youssef>(); if (youssef.HasAbility <LogInWithAUserAccount>()) { return; } youssef.IsAbleTo(LogInWithAUserAccount.WithTheUsername(Youssef.Username).AndThePassword(Youssef.Password)); }