Esempio n. 1
0
        /// <summary>
        /// Default constructor. Resolves references to quest list model and command factories.
        /// </summary>
        public QuestListViewModel(
            IQuestListModel questListModel,
            IStateCommandsFactory stateCommandsFactory,
            ITreeCommandsFactory treeCommandsFactory)
        {
            questListModel.ThrowIfNull(nameof(questListModel));
            stateCommandsFactory.ThrowIfNull(nameof(stateCommandsFactory));
            treeCommandsFactory.ThrowIfNull(nameof(treeCommandsFactory));

            QuestListModel = questListModel;
            StateCommads   = stateCommandsFactory;
            TreeCommands   = treeCommandsFactory;
        }