Exemplo n.º 1
0
        private void InitStates()
        {
            this._articleLoadedState = new ArticleLoadedState(this);
            this._articleEditState   = new ArticleEditState(this);

            this._currentState = this.GetLoadedState();
        }
Exemplo n.º 2
0
 public void Cleanup()
 {
     this._mockRepository              = null;
     this._mockDialogService           = null;
     this._mockArticlesOptionViewModel = null;
     this._articleEditState            = null;
     GC.Collect();
 }
Exemplo n.º 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._articleEditState = new ArticleEditState(this._mockArticlesOptionViewModel.Object);
        }