public void UpdateTestReturn200() { FormModel formModel = new() { Id = 1, Name = "Test3" }; var result = dictionaryController.Update(formModel); Assert.IsInstanceOf <OkObjectResult>(result.Result); }
private void BtnUpdate_Click(object sender, EventArgs e) { if (chkActive.Checked) { updatedDictionary.IsActive = true; } else { updatedDictionary.IsActive = false; } updatedDictionary.Turkish = txtTurkish.Text; updatedDictionary.English = txtEnglish.Text; _dictionaryController.Update(updatedDictionary); Close(); }