コード例 #1
0
		public void Setup()
		{
			string entriesXml =
					@"<entry id='foo1'><lexical-unit><form lang='v'><text>fooOne</text></form></lexical-unit></entry>
								<entry id='foo2'><lexical-unit><form lang='v'><text>fooTwo</text></form></lexical-unit></entry>
								<entry id='foo3'><lexical-unit><form lang='v'><text>fooThree</text></form></lexical-unit></entry>";
			_projectDirectory = new ProjectDirectorySetupForTesting(entriesXml);

			_project = new WeSayWordsProject();
			_project.LoadFromLiftLexiconPath(_projectDirectory.PathToLiftFile);
			_tabbedForm = new TabbedForm();
			_project.Tasks = new List<ITask>();
			_dashboardTask = new MockTask("Dashboard", "The control center.", true);
			_project.Tasks.Add(_dashboardTask);
			_dictionaryTask = new MockTask("Dictionary blah blah", "The whole lexicon.", true);
			_project.Tasks.Add(_dictionaryTask);

			_tabbedForm.InitializeTasks(_project.Tasks);
		}
コード例 #2
0
        public void Setup()
        {
            string entriesXml =
                @"<entry id='foo1'><lexical-unit><form lang='qaa-x-qaa'><text>fooOne</text></form></lexical-unit></entry>
								<entry id='foo2'><lexical-unit><form lang='qaa-x-qaa'><text>fooTwo</text></form></lexical-unit></entry>
								<entry id='foo3'><lexical-unit><form lang='qaa-x-qaa'><text>fooThree</text></form></lexical-unit></entry>"                                ;

            _projectDirectory = new ProjectDirectorySetupForTesting(entriesXml);

            _project = new WeSayWordsProject();
            _project.LoadFromLiftLexiconPath(_projectDirectory.PathToLiftFile);
            _tabbedForm    = new TabbedForm(new NullStatusBarController());
            _project.Tasks = new List <ITask>();
            _dashboardTask = new MockTask("Dashboard", "The control center.", true);
            _project.Tasks.Add(_dashboardTask);
            _dictionaryTask = new MockDictionaryTask("Dictionary blah blah", "The whole lexicon.", true);
            _project.Tasks.Add(_dictionaryTask);

            _tabbedForm.InitializeTasks(_project.Tasks);
        }