Ejemplo n.º 1
0
        public void Create()
        {
            var view = new FrameworkElement();

            var viewConfiguration = new ViewConfiguration(view);

            Assert.AreSame(view, viewConfiguration.View);
            Assert.IsNull(viewConfiguration.ViewModel);
        }
Ejemplo n.º 2
0
        public void CreateWithViewModel()
        {
            var view = new FrameworkElement();
            var viewModel = new Object();

            var viewConfiguration = new ViewConfiguration(view, viewModel);

            Assert.AreSame(view, viewConfiguration.View);
            Assert.AreSame(viewModel, viewConfiguration.ViewModel);
        }