Exemplo n.º 1
0
        public void WhenYoussefChangesHisPassword(string newPassword)
        {
            var youssef = cast.Get <Youssef>();

            stage.ShineTheSpotlightOn(youssef);
            When(youssef).AttemptsTo(ChangeTheirPassword.From(Youssef.Password).To(newPassword));
        }
Exemplo n.º 2
0
        public void WhenYoussefChangesHisPasswordWithTheWrongCurrentPassword(string newPassword)
        {
            var fixture           = new Fixture();
            var incorrectPassword = fixture.Create <string>();

            var youssef = cast.Get <Youssef>();

            stage.ShineTheSpotlightOn(youssef);
            When(youssef).AttemptsTo(ChangeTheirPassword.From(incorrectPassword).To(newPassword));
        }