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