public void AddUserTest() { var controller = new UserManagementController(); controller.Request = new HttpRequestMessage(); controller.Configuration = new HttpConfiguration(); User user = new User(); user.EmployeeID = 3412342; user.FirstName = "Test Test"; user.LastName = "Test"; string result = controller.Post(user); Assert.AreEqual("Record added Successfully", result); }