public void ValidateReferencesWithDB() { m_mlscrBook = new DBMultilingScrBooks(m_scr); Assert.IsFalse(m_mlscrBook.IsBookAvailableInDb(1), "Genesis found"); Assert.IsTrue("genesis" != m_mlscrBook.GetBookName(1).ToLower(), "Genesis found"); Assert.IsFalse(m_mlscrBook.IsReferenceValid("GEN 1:4"), "GEN 1:4 said to be a valid Reference"); Assert.IsTrue(m_mlscrBook.IsBookAvailableInDb(2), "Exodus not found"); Assert.AreEqual("Exodus".ToLower(), m_mlscrBook.GetBookName(2).ToLower(), "Exodus found"); Assert.IsTrue(m_mlscrBook.IsReferenceValid("EXO 1:2"), "EXO 1:2 said to be an invalid Reference"); }
public TeNotesVc(FdoCache cache) : base(LayoutViewTarget.targetDraft, -1) { m_cache = cache; m_wsDefault = cache.DefaultAnalWs; m_tsStrFactory = cache.TsStrFactory; m_scr = cache.LanguageProject.TranslatedScriptureOA; m_scrBooks = new DBMultilingScrBooks(m_scr); Image img = ResourceHelper.MinusBox; m_picMinus = (IPicture)OLECvt.ToOLE_IPictureDisp(img); //m_pixelHeights[m_picMinus] = img.Height; m_picPlus = (IPicture)OLECvt.ToOLE_IPictureDisp(ResourceHelper.PlusBox); m_picChooser = GetChooserImage(); //using (Form frm = new Form()) //using (Graphics g = frm.CreateGraphics()) // m_dpiY = (int)g.DpiY; m_quoteLabel = MakeLabelFromStringID("kstidQuoteLabel"); m_detailsLabel = MakeLabelFromStringID("kstidDetailsLabel"); m_discussionLabel = MakeLabelFromStringID("kstidDiscussionLabel"); m_messageLabel = MakeLabelFromStringID("kstidMessageLabel"); m_suggestionLabel = MakeLabelFromStringID("kstidSuggestionLabel"); m_resolutionLabel = MakeLabelFromStringID("kstidResolutionLabel"); m_authorLabel = MakeLabelFromStringID("kstidAuthorLabel"); m_createdLabel = MakeLabelFromStringID("kstidCreatedLabel"); m_modifiedLabel = MakeLabelFromStringID("kstidModifiedLabel"); m_resolvedLabel = MakeLabelFromStringID("kstidResolvedLabel"); m_responseLabel = MakeLabelFromStringID("kstidResponseLabel"); ITsStrFactory strFactory = TsStrFactoryClass.Create(); m_tssEmpty = strFactory.MakeString(string.Empty, m_scr.Cache.DefaultUserWs); }