public void SalesOrderLinesController_Details_isNotValid() { SalesOrderLinesController controller = new SalesOrderLinesController(); HttpNotFoundResult result = controller.Details(9999999) as HttpNotFoundResult; var expectedResult = new HttpNotFoundResult().GetType(); Assert.IsInstanceOfType(result, expectedResult); }
public void SalesOrderLinesController_Details_isValid() { SalesOrderLinesController controller = new SalesOrderLinesController(); ViewResult result = controller.Details(2) as ViewResult; SalesOrderLine SalesOrderLineResult = (SalesOrderLine)result.Model; Assert.AreEqual(2, SalesOrderLineResult.salesOrderLinesID); }