UpdateAsync() public method

See INfieldTranslationsService.UpdateAsync
public UpdateAsync ( string surveyId, int languageId, Nfield.Models.Translation translation ) : System.Threading.Tasks.Task
surveyId string
languageId int
translation Nfield.Models.Translation
return System.Threading.Tasks.Task
        public void TestUpdateAsync_TranslationExists_DoesNotThrow()
        {
            var translation = new Translation
            {
                Name = "X",
                Text = "Translation X"
            };
            var mockedNfieldConnection = new Mock<INfieldConnectionClient>();
            var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection);
            mockedHttpClient
                .Setup(client => client.PutAsJsonAsync(
                    ServiceAddress + "Surveys/" + SurveyId + "/Languages/10/Translations", It.IsAny<Translation>()))
                .Returns(CreateTask(HttpStatusCode.OK));

            var target = new NfieldTranslationsService();
            target.InitializeNfieldConnection(mockedNfieldConnection.Object);

            Assert.DoesNotThrow(() => target.UpdateAsync(SurveyId, LanguageId, translation).Wait());
        }
 public void TestUpdateAsync_TranslationIsNull_ThrowsArgumentNullException()
 {
     var target = new NfieldTranslationsService();
     Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.UpdateAsync(SurveyId, LanguageId, null)));
 }
 public void TestUpdateAsync_SurveyIdIsNull_Throws()
 {
     var target = new NfieldTranslationsService();
     Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.UpdateAsync(null, 0, new Translation())));
 }