Beispiel #1
0
        public void TestExternalSystemError()
        {
            Order order = new Order(123456, "Big Smoke", "Grove Street");

            order.AddOrderItem(item1);

            supplyService.BreakExternal();
            try
            {
                supplyService.CreateDelivery(order);
                Assert.Fail();
            }
            catch (MarketException e)
            {
                Assert.AreEqual((int)SupplyStatus.SupplySystemError, e.Status);
            }
        }