public void TestDataShapingForObjectResponse() { TestApiController testController = new TestApiController(); TestContract contract = new TestContract("1", "name", "description"); testController.RequiredFields = new List<string>(); testController.RequiredFields.Add("Name"); var processedResponse = testController.TestProcessResponse<TestContract>(contract) as IDictionary<string, object>; Assert.IsFalse(processedResponse.ContainsKey("ID")); Assert.AreEqual(processedResponse["Name"], "name"); Assert.IsFalse(processedResponse.ContainsKey("Description")); }