@When("^Yo voto una segunda vez al mismo restaurante$") public void yo_voto_una_segunda_vez_al_mismo_restaurante() throws Throwable { try { votarRestauranteSemanal.vote(); } catch (Exception e) { votoDuplicado = true; } }
@Then("^El restaurante al que he votado tiene un voto asociado$") public void el_restaurante_al_que_he_votado_incrementa_en_uno_su_contador_de_votos() throws Throwable { votarRestauranteSemanal.verifyVote(); }
@Given("^Hay un restaurante en la lista llamado \"(.*?)\"$") public void hay_un_restaurante_en_la_lista_llamado(String name) throws Throwable { votarRestauranteSemanal.addRestaurant(name); }
@When("^Yo voto al restaurante$") public void yo_voto_a_un_restaurante() throws Throwable { votarRestauranteSemanal.vote(); }
@Given("^Yo soy una persona con nombre \"(.*?)\" que puede votar$") public void yo_soy_una_persona_con_nombre_que_puede_votar(String name) throws Throwable { votarRestauranteSemanal.init(); votarRestauranteSemanal.addPerson(name); }