Open FlorenciaV opened 1 year ago
Comienzo: 10/05 Fin: 12/05 Esfuerzo: 436,5 minutos/persona
BDD: 45 minutos/persona Codificación y pruebas unitarias: 3:30 horas/persona Integración con front: 3 horas/persona Review: 1,5 minutos/persona
Comienzo: 22/05 Fin: 22/05 Esfuerzo:
Tests de integración: 45 minutos/persona Review: 1,5 minutos/persona
El usuario administrador puede realizar alta y baja de snacks con descripción y precio (datos obligatorios).
Scenario: Successful snack creation Given I am an administrator When I add a new snack with name "Chips", description "Potato chips", and price 159 Then the response status code should be 200 And the snack with name "Chips" should be added to the snacks table
Scenario: Snack creation with missing data Given I am an administrator When I add a new snack with name "", description "Potato chips", and price 0 Then ArgumentException is thrown
Scenario: Duplicate snack creation Given I am an administrator And there is already a snack with name "Hot dogs" in the snacks table When I add a new snack with name "Hot dogs", description "Hot dogs", and price 189 Then ArgumentException is thrown
Scenario: Successful snack deletion Given I am an administrator And there is a snack with ID 1 in the snacks table When I delete the snack with ID 1 Then the response status code should be 200 And the snack with ID 1 should no longer appear in the snacks table
Scenario: Non-existent snack deletion Given I am an administrator And there is no snack with ID 9 in the snacks table When I delete the snack with ID 9 Then NullReferenceException is thrown