public async Task Should_not_return_Delivery_when_unavailable()
        {
            const string DELIVERY_ID = "DL0001";

            using (var context = new ProcurementDbContext(ContextOptions))
            {
                DeliveriesController deliveriesController = new DeliveriesController(context);

                var result = await deliveriesController.GetDelivery(DELIVERY_ID);

                var viewResult = Assert.IsType <ActionResult <Delivery> >(result);
                Assert.IsNotType <Delivery>(viewResult.Value);
                var response = Assert.IsType <NotFoundResult>(viewResult.Result);
                Assert.Equal(404, response.StatusCode);
            }
        }
        public async Task Can_get_Delivery_By_Id()
        {
            const string DELIVERY_ID = "DL001";

            using (var context = new ProcurementDbContext(ContextOptions))
            {
                DeliveriesController deliveriesController = new DeliveriesController(context);

                var result = await deliveriesController.GetDelivery(DELIVERY_ID);

                var viewResult = Assert.IsType <ActionResult <Delivery> >(result);
                var delivery   = Assert.IsType <Delivery>(viewResult.Value);

                Assert.Equal(DELIVERY_ID, delivery.DeliveryId);
            }
        }