public void UpdateTestReturn200()
        {
            FormModel formModel = new()
            {
                Id   = 1,
                Name = "Test3"
            };

            var result = dictionaryController.Update(formModel);

            Assert.IsInstanceOf <OkObjectResult>(result.Result);
        }
Esempio n. 2
0
 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();
 }