public void GivenIHaveAnAttendant_WhenTheAttendantCreateAnOrder_ThenIShouldHaveAnOrderWithNumberOrder() { //arrange var attendant = new Attendant(); //act _order = attendant.CreateOrder(_choices, _table); //assert Assert.IsNotNull(_order.OrderNumber); }
public void GivenIHaveAnAttendant_WhenTheAttendatCreateAnOrder_ThenIShouldHaveAnOrderWichConsistsOfDishes() { //arrange var attendant = new Attendant(); //act _order = attendant.CreateOrder(_choices, _table); //assert Assert.IsNotNull(_order.CustomerChoices); }
public void GivenIHaveAnAttendant_WhenTheAttendantCreateAnOrder_ThenIShouldHaveAnOrderWithOptionsChosen() { //arrange var attendant = new Attendant(); //act _order = attendant.CreateOrder(_choices, _table); var optionDishe = _order.CustomerChoices.Where(_ => _.Id > 0).Select(_ => _.OptionDishesType).FirstOrDefault(); //assert Assert.IsNotNull(optionDishe); }
public void GivenIHaveAnAttendant_WhenTheAttendantCreateAnOrder_ThenIShouldHaveAnOrderWithDishesOptionChosenByCustomerForEachDish() { //arrange var attendant = new Attendant(); //act _order = attendant.CreateOrder(_choices, _table); var expected = _order.CustomerChoices.Where(_ => _.Id > 0).Select(_ => _.OptionDishesType); //assert Assert.IsNotNull(expected); Assert.IsNotEmpty(expected); Assert.AreEqual(_order.CustomerChoices, _choices); Assert.IsTrue(_customer.OrderDishIsCalled); }