예제 #1
0
 public ActionResult Add(ChangeRequest cr)
 {
     //Check state
     //Save and redirect to detail
     //or redirect to add with view state errors
     return ListByReportID(0);
 }
예제 #2
0
 public void Add_ChangeRequestMissingDetails_ReturnsAddView()
 {
     var cr = new ChangeRequest();
     var a = x.Add(cr);
     Assert.IsTrue(((ViewResult)a).ViewName == "Add");
 }
예제 #3
0
 public void Add_ProvidedCompleteChangeDetail_ReturnsDetailView()
 {
     var cr = new ChangeRequest();
     var a = x.Add(cr);
     Assert.IsTrue(((ViewResult)a).ViewName == "Detail");
 }
예제 #4
0
 public void Add_ChangeRequestMissingDetails_PopulatesModelViewStateErrors()
 {
     var cr = new ChangeRequest();
     var a = x.Add(cr);
     Assert.IsTrue(false);
 }