public void RegioncontextIsReturned() { var viewViewModelWrapper = new ModelVisualizer(new MockContextAwareView(), new MockContextAwareView()); var payload = new MockPayload(); (viewViewModelWrapper.View as IRegionContextAware).RegionContext.Value = payload; Assert.AreEqual(payload, viewViewModelWrapper.RegionContext.Value); Assert.AreEqual(payload, (viewViewModelWrapper.ViewModel as IRegionContextAware).RegionContext.Value); }
public void RegioncontextIsReturned() { var viewViewModelWrapper = new ViewViewModelWrapper<MockContextAwareView, MockContextAwareView>(GetContainer()); var payload = new MockPayload(); viewViewModelWrapper.View.RegionContext.Value = payload; Assert.AreEqual(payload, viewViewModelWrapper.RegionContext.Value); Assert.AreEqual(payload, viewViewModelWrapper.ViewModel.RegionContext.Value); }
public void RegioncontextIsReturned() { var viewViewModelWrapper = new ModelVisualizer(new MockContextAwareView(), new MockContextAwareView()); var payload = new MockPayload(); (viewViewModelWrapper.View as IRegionContextAware).RegionContext.Value = payload; Assert.AreEqual(payload, viewViewModelWrapper.RegionContext.Value); Assert.AreEqual(payload, (viewViewModelWrapper.ViewModel as IRegionContextAware).RegionContext.Value); }
public void RegioncontextIsReturned() { var viewViewModelWrapper = new ViewViewModelWrapper <MockContextAwareView, MockContextAwareView>(GetContainer()); var payload = new MockPayload(); viewViewModelWrapper.View.RegionContext.Value = payload; Assert.AreEqual(payload, viewViewModelWrapper.RegionContext.Value); Assert.AreEqual(payload, viewViewModelWrapper.ViewModel.RegionContext.Value); }