UpdateAsync() public method

See INfieldLanguagesService.UpdateAsync
public UpdateAsync ( string surveyId, Language language ) : System.Threading.Tasks.Task
surveyId string
language Language
return System.Threading.Tasks.Task
 public void TestUpdateAsync_SurveyIdIsNull_Throws()
 {
     var target = new NfieldLanguagesService();
     Assert.Throws<ArgumentNullException>(() => UnwrapAggregateException(target.UpdateAsync(null, new Language())));
 }
        public void TestUpdateAsync_LanguageExists_DoesNotThrow()
        {
            const int LanguageId = 11;
            var language = new Language
            {
                Id = LanguageId,
                Name = "XXX"
            };
            var mockedNfieldConnection = new Mock<INfieldConnectionClient>();
            var mockedHttpClient = CreateHttpClientMock(mockedNfieldConnection);
            mockedHttpClient
                .Setup(client => client.PutAsJsonAsync(
                    ServiceAddress + "Surveys/" + SurveyId + "/Languages", language))
                .Returns(CreateTask(HttpStatusCode.OK));

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

            Assert.DoesNotThrow(() => target.UpdateAsync(SurveyId, language).Wait());
        }