public void RefreshResultChildActionTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); RefreshResult result = new RefreshResult(); result.ExecuteResult(GetControllerContext(true)); }
public void RefreshResultTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); RefreshResult result = new RefreshResult(); result.ExecuteResult(GetControllerContext(false)); Assert.AreEqual("s1", StateContext.State.Key); Assert.IsNull(StateContext.Bag.a); }
public void RefreshResultNullContextTest() { StateController.Navigate("d0"); StateController.Navigate("t0", new NavigationData { { "a", 1 } }); RefreshResult result = new RefreshResult(); result.ExecuteResult(null); }