Exemplo n.º 1
0
        public void RefreshPage()
        {
            NewViewModel();
            _context.Participants[_viewModel.Group1Participants[0].ID].Name = "test";
            _context.Participants[_viewModel.Group2Participants[0].ID].Name = "test";

            _viewModel.RefreshPage();
            Assert.AreEqual("test", _viewModel.Group1Participants[0].Name);
            Assert.AreEqual("test", _viewModel.Group2Participants[0].Name);
        }
Exemplo n.º 2
0
        private void NewViewModel()
        {
            _context   = new ModelContext();
            _model     = new ParticipantsModel(_context);
            _viewModel = new ParticipantsViewModel(_model, _context);

            SetupModel setupModel = new SetupModel(_context);

            setupModel.Initialize();

            _viewModel.RefreshPage();
        }