Ejemplo n.º 1
0
 public ActionResult CustomerDetails()
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"AddCustomer\", new { _external_ = true })",
         GeneratedActionUrl = Url.Action("AddCustomer", new { _external_ = true }),
         ShouldBeActionUrl = "/TestArea/Test/AddCustomer",
         DependencyResult = _importantClass.GenerateText("CustomerDetails"),
     };
     return View(model);
 }
Ejemplo n.º 2
0
 public ActionResult AddCustomer(object o)
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"AddCustomer\")",
         GeneratedActionUrl = Url.Action("AddCustomer"),
         ShouldBeActionUrl = "/" + OrdersConsts.ServiceName + "/TestArea/Test/AddCustomer",
         DependencyResult = _importantClass.GenerateText("AddCustomer"),
     };
     return Json(model, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 3
0
 public ActionResult Summary(Guid id)
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"CustomersDetails\")",
         GeneratedActionUrl = Url.Action("CustomerDetails"),
         ShouldBeActionUrl = "/" + OrdersConsts.ServiceName + "/TestArea/Test/CustomersDetails",
         DependencyResult = _importantClass.GenerateText("Summary"),
     };
     var vm = new ViewModel(UIKeysAreaTest.Summary.OrdersDiv, p => p.Html.Action("Summary", new { model }));
     return ViewModel(vm);
 }