public void PurchaseOrdersController_Edit_GET_isNotValid()
        {
            PurchaseOrdersController controller = new PurchaseOrdersController();

            HttpNotFoundResult result = controller.Edit(9999999) as HttpNotFoundResult;
            var expectedResult = new HttpNotFoundResult().GetType();

            Assert.IsInstanceOfType(result, expectedResult);
        }
        public void PurchaseOrdersController_Edit_GET_isValid()
        {
            PurchaseOrdersController controller = new PurchaseOrdersController();

            ViewResult result = controller.Edit(1) as ViewResult;
            PurchaseOrder PurchaseOrdersResult = (PurchaseOrder)result.Model;

            Assert.AreEqual(1, PurchaseOrdersResult.purchaseOrderID);
        }