Ejemplo n.º 1
0
 public void OrderDetailsInvalidId()
 {
     var controller = new OrderController(new OrderBLL(new OrderServiceStub()));
     var actionResult = (HttpStatusCodeResult)controller.Details(99);
     Assert.AreEqual(actionResult.StatusCode, 404);
 }
Ejemplo n.º 2
0
        public void OrderDetailsValid()
        {
            var controller = new OrderController(new OrderBLL(new OrderServiceStub()));
            var actionResult = (ViewResult)controller.Details(1);

            Assert.AreEqual(actionResult.ViewName, "");
        }