public void PostUE_ShouldReturnSame() { var controller = new UserEvaluationsController(new TestWebApiContext()); var item = GetDefaultUserEval(); var result = controller.PostUserEvaluation(item) as CreatedAtRouteNegotiatedContentResult <UserEvaluation>; Assert.IsNotNull(result); Assert.AreEqual(result.RouteName, "DefaultApi"); Assert.AreEqual(result.RouteValues["id"], result.Content.CD_USEREVALUATION); Assert.AreEqual(result.Content.DS_EMAIL, item.DS_EMAIL); Assert.AreEqual(result.Content.DS_NAME, item.DS_NAME); }