public void Incidents_GetEmails() { // Set test GetData method w/o parameters request.Setup(m => m.Get <Response <IEnumerable <Email> > >("incidents/666/emails", null)).Returns(new Response <IEnumerable <Email> > { Data = new List <Email> { new Email { Id = 999 } } }); // Test Get method var result = incidentsProxy.GetEmails(666); // Verify test Assert.IsNotNull(result); Assert.AreEqual(1, result.Data.Count()); Assert.IsTrue(result.IsSuccessful); Assert.AreEqual(999, result.Data.ElementAt(0).Id); }