public void RetailersController_Details_isNotValid() { RetailersController controller = new RetailersController(); HttpNotFoundResult result = controller.Details(9999999) as HttpNotFoundResult; var expectedResult = new HttpNotFoundResult().GetType(); Assert.IsInstanceOfType(result, expectedResult); }
public void RetailersController_Details_isValid() { RetailersController controller = new RetailersController(); ViewResult result = controller.Details(1) as ViewResult; Retailer RetailerResult = (Retailer)result.Model; Assert.AreEqual(1, RetailerResult.retailerID); }