public void Release_Update() { var aProject = new Release { Id = 1234 }; // Set test Create method w/o parameters request.Setup(m => m.Post <Response <Release> >("releases/1234", aProject, null)).Returns(new Response <Release> { Data = aProject }); // Test Get method var result = releasesProxy.Update(aProject); // Verify test Assert.IsNotNull(result); Assert.IsTrue(result.IsSuccessful); Assert.AreEqual(1234, result.Data.Id); }