コード例 #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();
 }
コード例 #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();
 }
コード例 #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();
 }