public void Projects_Create() { var aProject = new Project { Id = 0 }; // Set test Create method w/o parameters request.Setup(m => m.Post <Response <Project> >("projects", aProject, null)).Returns(new Response <Project> { Data = new Project { Id = 1234 } }); // Test Get method var result = projectsProxy.Create(aProject); // Verify test Assert.IsNotNull(result); Assert.IsTrue(result.IsSuccessful); Assert.AreEqual(1234, result.Data.Id); }
public Projects Create(Projects Projects) { return(_Projects.Create(Projects)); }