public void Create_item_for_menu() { this.Given(step => fixture.GivenAUser()) .And(step => itemSteps.GivenIHaveSpecfiedAFullItem()) .When(step => itemSteps.WhenICreateTheItemForAnExistingMenuAndCategory()) .Then(step => itemSteps.ThenTheItemHasBeenCreated()) .BDDfy(); }
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(); }
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(); }