예제 #1
0
 public void Create_category_for_menu()
 {
     this.Given(step => fixture.GivenAUser())
     .And(step => categorySteps.GivenIHaveSpecfiedAFullCategory())
     .When(step => categorySteps.WhenICreateTheCategoryForAnExistingMenu())
     .Then(step => categorySteps.ThenTheCategoryHasBeenCreated())
     .BDDfy();
 }
 public void Admins_Can_Delete_Categories()
 {
     this.Given(step => fixture.GivenAUser())
     .And(step => categorySteps.GivenIHaveSpecfiedAFullCategory())
     .When(step => categorySteps.WhenICreateTheCategoryForAnExistingMenu())
     .Then(step => categorySteps.ThenTheCategoryHasBeenCreated())
     .When(step => categorySteps.WhenIDeleteTheCategory())
     .Then(step => categorySteps.ThenTheCategoryHasBeenDeleted())
     .BDDfy();
 }
 public void Admins_Can_Update_Existing_Categories()
 {
     this.Given(s => fixture.GivenAnAdmin())
     .And(step => categorySteps.GivenIHaveSpecfiedAFullCategory())
     .When(step => categorySteps.WhenICreateTheCategoryForAnExistingMenu())
     .Then(step => categorySteps.ThenTheCategoryHasBeenCreated())
     .When(s => categorySteps.WhenISendAnUpdateCategoryRequest())
     .Then(s => categorySteps.ThenTheCategoryIsUpdatedCorrectly())
     .BDDfy();
 }