Как получить TempData после RedirectToAction в тесте Rhino Mock?
Код
public ActionResult Action1() {
TempData["Foo"] = "Bar";
return RedirectToAction("Action2");
}
public ActionResult Action2() {
return View();
}
Тестовое задание
using (var controller = new TestController(x => x.Register(service))){
var result = (RedirectToRouteResult)controller.Action1();
// How to get TempData value there ?!
}
TempData
и проверки? - person Chris Mantle   schedule 12.11.2013