Esempio n. 1
0
        public void Process_OrderIsAlreadyShipped_ThrowAnException()
        {
            var orderProcess = new OrderProcesser(new FakeShippingCalculator());
            var order        = new Order
            {
                Shipment = new Shipment()
            };

            orderProcess.Process(order);
        }
Esempio n. 2
0
        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);
        }