Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public void GivenYoussefCanLogInWithAUsernameAndPassword()
        {
            var youssef = cast.Get <Youssef>();

            if (youssef.HasAbility <LogInWithAUserAccount>())
            {
                return;
            }

            youssef.IsAbleTo(LogInWithAUserAccount.WithTheUsername(Youssef.Username).AndThePassword(Youssef.Password));
        }