Exemplo n.º 1
0
 public void Create_item_for_menu()
 {
     this.Given(step => fixture.GivenAUser())
     .And(step => itemSteps.GivenIHaveSpecfiedAFullItem())
     .When(step => itemSteps.WhenICreateTheItemForAnExistingMenuAndCategory())
     .Then(step => itemSteps.ThenTheItemHasBeenCreated())
     .BDDfy();
 }
Exemplo n.º 2
0
 public void Admins_Can_Update_Existing_Items()
 {
     this.Given(s => fixture.GivenAnAdmin())
     .And(step => itemSteps.GivenIHaveSpecfiedAFullItem())
     .When(step => itemSteps.WhenICreateTheItemForAnExistingMenuAndCategory())
     .Then(step => itemSteps.ThenTheItemHasBeenCreated())
     .When(s => itemSteps.WhenISendAnUpdateItemRequest())
     .Then(s => itemSteps.ThenTheItemIsUpdatedCorrectly())
     .BDDfy();
 }
Exemplo n.º 3
0
 public void Admins_Can_Delete_Items()
 {
     this.Given(step => fixture.GivenAUser())
     .And(step => itemSteps.GivenIHaveSpecfiedAFullItem())
     .When(step => itemSteps.WhenICreateTheItemForAnExistingMenuAndCategory())
     .Then(step => itemSteps.ThenTheItemHasBeenCreated())
     .When(step => itemSteps.WhenIDeleteTheItem())
     .Then(step => itemSteps.ThenTheItemHasBeenDeleted())
     .BDDfy();
 }