CallfireApiClient.Tests.Api.Campaigns.CampaignSoundsApiTest.TestFind C# (CSharp) Method

TestFind() private method

private TestFind ( ) : void
return void
        public void TestFind()
        {
            string expectedJson = GetJsonPayload("/campaigns/campaignSoundsApi/response/findCampaignSounds.json");
            var restRequest = MockRestResponse(expectedJson);

            FindSoundsRequest request = new FindSoundsRequest
            {
                Limit = 5,
                Offset = 0,
                Filter = "1234"
            };

            Page<CampaignSound> sounds = Client.CampaignSoundsApi.Find(request);

            Assert.That(Serializer.Serialize(sounds), Is.EqualTo(expectedJson));
            Assert.AreEqual(Method.GET, restRequest.Value.Method);
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("limit") && p.Value.Equals("5")));
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("offset") && p.Value.Equals("0")));
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("filter") && p.Value.Equals("1234")));
        }