public void Begin_Will_Return_The_First_Step() { var step = RouteFlow.Begin <KillerFlow>() as RedirectToRouteResult; Assert.IsTrue(step.RouteValues.ContainsKey("controller")); Assert.AreEqual("Test", step.RouteValues["controller"]); Assert.AreEqual("Page1", step.RouteValues["action"]); }
public ActionResult Page2(string skip) { if (skip.ToLower() == "skip") { return(RouteFlow.Next(new { id = 22 }, 1)); } return(RouteFlow.Next(new { id = 22 })); }
public void Setup() { // bootstrap routeflow for testing var worker = new RouteFlow(new TestSessionProvider()); flow = new KillerFlow(); flow.Setup(); }
public void Move_To_Next_Step() { var step = RouteFlow.Begin <KillerFlow>() as RedirectToRouteResult; var next = RouteFlow.Next() as RedirectToRouteResult; Assert.IsTrue(next.RouteValues.ContainsKey("controller")); Assert.AreEqual("Test", next.RouteValues["controller"]); Assert.AreEqual("Page2", next.RouteValues["action"]); }
public ActionResult Three(int?id) { return(RouteFlow.Next()); }
// // GET: /Easy/ public ActionResult Index() { return(RouteFlow.Begin("easy")); }
//[RouteFlow(Path = "path-foo", Step = 20, Select = When.Done)] //[RouteFlowGetCorrelation(Path = "path-foo", Name = "id", AssignTo = "id")] public ActionResult Done(object id) { RouteFlow.Done(); return(View(id)); }
public ActionResult Page3(string post) { return(RouteFlow.Next()); }
//[RouteFlowSetCorrelation(Path = "path-foo", As = "id", Value = "id")] public ActionResult Page1(string id) { return(RouteFlow.Next()); }
public ActionResult Index() { return(RouteFlow.Begin <TestFlow>()); }
public static void RegisterRouteFlow() { RouteFlow.Register(); }
public ActionResult Done() { RouteFlow.Done(); return(View()); }
public ActionResult Page1(string post) { return(RouteFlow.Next(new { id = 22 })); }
// // GET: /Skip/ public ActionResult Index() { return(RouteFlow.Begin("path-bar")); }