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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }