CallfireApiClient.Tests.Api.Contacts.DncApiTest.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
        public void Update()
        {
            string requestJson = GetJsonPayload("/contacts/dncApi/request/updateDnc.json");
            var restRequest = MockRestResponse();

            DoNotContact dnc = new DoNotContact
            {
                Call = true,
                ListId = TEST_LONG,
                Number = TEST_LONG.ToString(),
                Text = true
            };

            Client.DncApi.Update(dnc);

            Assert.AreEqual(Method.PUT, restRequest.Value.Method);
            var requestBodyParam = restRequest.Value.Parameters.FirstOrDefault(p => p.Type == ParameterType.RequestBody);
            Assert.That(requestBodyParam.Value, Is.EqualTo(requestJson));
        }
DncApiTest