示例#1
0
        private void InitStates()
        {
            this._articleLoadedState = new ArticleLoadedState(this);
            this._articleEditState   = new ArticleEditState(this);

            this._currentState = this.GetLoadedState();
        }
示例#2
0
 public void Cleanup()
 {
     this._mockRepository              = null;
     this._mockDialogService           = null;
     this._mockArticlesOptionViewModel = null;
     this._articleLoadedState          = null;
     GC.Collect();
 }
示例#3
0
        public void Init()
        {
            this._mockRepository              = new Mock <IRepository>();
            this._mockDialogService           = new Mock <IDialogService>();
            this._mockArticlesOptionViewModel = new Mock <ArticlesOptionViewModel>(Resources.Workspace_Title_Articles, Resources.img_articles,
                                                                                   this._mockRepository.Object, this._mockDialogService.Object);

            this._articleLoadedState = new ArticleLoadedState(this._mockArticlesOptionViewModel.Object);
        }