public void When_confirming_an_order_that_is_late() { offer.Stub(x => x.IsNotSatisfiedBy(timeOrderWasPlaced, timePizzaDelivered)).Return(true); var order = new OrderForDelivery(id, customerId, restaurantId, menuItemIds, timeOrderWasPlaced, offer); using (DomainEvents.Register <DeliveryGuaranteeFailed>(setTestFlag)) { order.ConfirmReceipt(timePizzaDelivered); } }
public void When_confirming_an_order_that_is_late() { offer.Stub(x => x.IsNotSatisfiedBy(timeOrderWasPlaced, timePizzaDelivered)).Return(true); order = new OrderForDelivery(id, customerId, restaurantId, menuItemIds, timeOrderWasPlaced, offer); order.ConfirmReceipt(timePizzaDelivered); }