public void WhenYoussefChangesHisPassword(string newPassword) { var youssef = cast.Get <Youssef>(); stage.ShineTheSpotlightOn(youssef); When(youssef).AttemptsTo(ChangeTheirPassword.From(Youssef.Password).To(newPassword)); }
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)); }