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, ""); }