public void ChangeDescriptionOfConceptionTest() { int conceptionId = AddConceptionRus(); string word = "Генерато2"; Conception.LanguageId languageIdEng = Conception.LanguageId.Russian; m_Dictionary.ChangeDescriptionOfConception(conceptionId, word, languageIdEng); int expected = 1; Assert.AreEqual(expected, m_Dictionary.ConceptionsCount); }
private void btnChangeDescription_Click(object sender, RoutedEventArgs e) { Conception conception = (Conception)listConceptions.SelectedItem; if (conception == null) { return; } Conception.LanguageId languageForEdit = (Conception.LanguageId)cmbChangeforEdit.SelectedIndex; m_Dictionary.ChangeDescriptionOfConception(conception.ConceptionId, txtEditDescription.Text, languageForEdit); UpdateAllControls(); }