private void InitStates() { this._articleLoadedState = new ArticleLoadedState(this); this._articleEditState = new ArticleEditState(this); this._currentState = this.GetLoadedState(); }
public void Cleanup() { this._mockRepository = null; this._mockDialogService = null; this._mockArticlesOptionViewModel = null; this._articleLoadedState = null; GC.Collect(); }
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); }