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

Find() private method

private Find ( ) : void
return void
        public void Find()
        {
            string expectedJson = GetJsonPayload("/contacts/dncApi/response/findDncs.json");
            var restRequest = MockRestResponse(expectedJson);

            FindDncContactsRequest request = new FindDncContactsRequest
            {
                Limit = 1,
                Offset = 5,
                Fields = FIELDS,
                Prefix = "1",
                DncListId = TEST_LONG,
                DncListName = TEST_STRING,
                CallDnc = true,
                TextDnc = true
            };

            Page<DoNotContact> dncs = Client.DncApi.Find(request);

            Assert.NotNull(dncs);
            Assert.That(Serializer.Serialize(dncs), Is.EqualTo(expectedJson));
            Assert.AreEqual(Method.GET, restRequest.Value.Method);
        }
DncApiTest