Upload() public method

public Upload ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public void TestUploadPostInvalid()
        {
            BaseballCardController controller = new BaseballCardController(mockCardRepository.Object);

            ViewResult result = controller.Upload(null) as ViewResult;

            Assert.AreEqual(result.ViewName, "Upload");
            Assert.IsNotNull(result.TempData["error"]);
        }
        public void TestUploadGet()
        {
            BaseballCardController controller = new BaseballCardController(mockCardRepository.Object);

            ViewResult result = controller.Upload() as ViewResult;

            Assert.AreEqual(result.ViewName, "");
        }