Delete() public method

public Delete ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public void TestDeleteRulesetHttpReturn()
        {
            RulesetDetails testNullRulesetDetails = null;
            mockRuleService.Setup(rules => rules.Details(TESTIDTWO))
                .Returns(testNullRulesetDetails).Verifiable();

            testController = new RuleController(mockRuleService.Object);
            var result = testController.Delete(TESTIDTWO) as HttpNotFoundResult;

            Assert.AreEqual(404, result.StatusCode);
            mockRuleService.Verify();
        }
        public void TestDeleteRuleset()
        {
            mockRuleService.Setup(rules => rules.Details(TESTIDTHREE))
                .Returns(testRuleDetailsThree).Verifiable();

            testController = new RuleController(mockRuleService.Object);
            ViewResult result = testController.Delete(TESTIDTHREE) as ViewResult;
            RulesetDetails ruleset = (RulesetDetails)result.Model;

            Assert.IsNotNull(ruleset, "The rule selected for deletion wasn't returned.");
            Assert.AreEqual(TESTIDTHREE, ruleset.rulesetWrapper.RuleSetId);
            mockRuleService.Verify();
        }