Пример #1
0
		public void SmokeTest()
		{
			string contents =
					@"<entry id='one'><sense><gloss lang='en'><text>hello</text></gloss></sense></entry>";
			HtmlArticleMaker maker = new HtmlArticleMaker(
					_projectDirectory.PathToWritingSystemFile,
					_projectDirectory.PathToFactoryDefaultsPartsOfSpeech);
			string s = maker.GetHtmlFragment(contents);
			Assert.IsTrue(s.Contains("<html>"));
			Assert.IsTrue(s.Contains("hello"));
		}
Пример #2
0
		public DictionaryServiceProvider(LexEntryRepository lexEntryRepository,
										 WeSayApp app,
										 WeSayWordsProject project)
		{
			_app = app;
			_project = project;
			_registeredClientProcessIds = new List<int>();
			_lexEntryRepository = lexEntryRepository;
			_articleMaker = new HtmlArticleMaker(_project.LocateFile("WritingSystemPrefs.xml"),
												 _project.LocateFile("PartsOfSpeech.xml"));
		}