Delete() публичный Метод

public Delete ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult
        public void TestDeleteGetValidBaseballCard()
        {
            BaseballCardController controller = new BaseballCardController(mockCardRepository.Object);
            int baseballCardId = 1;

            ViewResult result = controller.Delete(baseballCardId) as ViewResult;
            BaseballCard card = (BaseballCard)result.ViewData.Model;

            // Test the view model contains a list of fish
            Assert.IsNotNull(card, "The card does not exist");
            Assert.IsTrue(card.Player == mockCards[1].Player);
        }
        public void TestDeleteGetInvalidBaseballCard()
        {
            BaseballCardController controller = new BaseballCardController(mockCardRepository.Object);
            int baseballCardId = -1;

            HttpNotFoundResult result = controller.Delete(baseballCardId) as HttpNotFoundResult;

            Assert.IsNotNull(result);
        }