public void Process_OrderIsAlreadyShipped_ThrowAnException() { var orderProcess = new OrderProcesser(new FakeShippingCalculator()); var order = new Order { Shipment = new Shipment() }; orderProcess.Process(order); }
public void Porcess_OrderIsNotShipped_shouldSetTheShip() { var orderProcess = new OrderProcesser(new FakeShippingCalculator()); var order = new Order(); orderProcess.Process(order); Assert.IsTrue(order.IsShipped); //Assert.AreEqual(1,order.Shipment); Assert.AreEqual(DateTime.Today.AddDays(1), order.Shipment.ShippingDate); }