public void SetupSkillTableViewModel()
        {
            var uiStateController = new UiStateController(_logger, new UiLockerContextFactory());

            _asyncCommandFactory        = new AsyncCommandFactory(_fakeNotifyTaskCompletionFactory, new AsyncCommandWatcherFactory(uiStateController), new TaskWrapper());
            _asyncCommandAdaptorFactory = new AsyncCommandAdaptorFactory(_asyncCommandFactory);
            _uiThreadInvoker            = new UiThreadInvoker(_logger);

            _skillTableViewModel = new SkillTableViewModel(_logger, _skillTableModel, _asyncCommandFactory, _asyncCommandAdaptorFactory, _uiThreadInvoker,
                                                           new UiStateController(_logger, new UiLockerContextFactory()), _bindingHelper);
        }
Exemplo n.º 2
0
        private void SetupUiView()
        {
            var skillViewModelFactory       = new SkillViewModelFactory(_logger, new SkillModelFactoryFactory(_skillsService, _autoMapper), _asyncCommandAdaptorFactory, _uiThreadInvoker);
            var primaryStatViewModelFactory = new PrimaryStatViewModelFactory(_logger, _asyncCommandAdaptorFactory, _uiThreadInvoker, _primaryStatModelFactory);

            _titleZoneViewModel = new TitleZoneViewModel(_titleZoneModel, _uiThreadInvoker);

            _skillTableViewModel = new SkillTableViewModel(_logger, _skillTableModel, _asyncCommandFactory, _asyncCommandAdaptorFactory,
                                                           _uiThreadInvoker, _uiStateController, new SkillTableViewModelBindingHelper(skillViewModelFactory));

            _primaryStatsTableViewModel = new PrimaryStatsTableViewModel(_logger, _primaryStatsTableModel, new PrimaryStatTableViewModelBindingHelper(primaryStatViewModelFactory),
                                                                         _asyncCommandFactory, _asyncCommandAdaptorFactory, _uiThreadInvoker, _uiStateController);
        }