Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var someVM = new SomeViewModel();
- someVM.LoadCommand.Execute(model);
- var context = Controller.Action("Controller", "Method", new { model = someVM }).Result as ViewResult;
- If.Real<ViewResult>(context, c => c.ViewClosed += (s, e) =>
- {
- var result = (e.ViewResult.Model as SomeViewModel).Result;
- if (result.CloseViewReason == CloseViewReason.Edited)
- {
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement