public void GetCustomersPaginated() { Franchise franchise = new Franchise(_ctx.Listen360, TestUtil.GetElementForXml(Properties.Resources.FakeFranchise1)); TestUtil.SetupResponseXml(_ctx.WebRequest, string.Format("<customers type=\"array\">{0}</customers>", Properties.Resources.FakeCustomer1)); ICustomer[] customers = franchise.GetCustomers(2); Assert.IsTrue(_ctx.WebRequestFactory.CreateWebRequestCalled); Assert.AreEqual(string.Format("{0}/{1}/customers?page=2", _ctx.Url, franchise.Path), _ctx.WebRequestFactory.CreateWebRequestLastUrl); Assert.AreEqual(1, customers.Length); Assert.AreEqual(3, customers[0].Id); }