Exemplo n.º 1
0
        public void EditWithoutId()
        {
            // arrange
            int?id = null;

            // act
            ViewResult result = (ViewResult)controller.Edit(id);

            // assert
            Assert.AreEqual("Error", result.ViewName);
        }
 public void EditAthleteValid()
 {
     //Act
     var actual = (Athlete)controller.Edit(1).Model;
 }