Example #1
0
        public void UpdateUserTest()
        {
            var controller = new UserManagementController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            var user = controller.Get(1);

            user.EmployeeID = 456789;

            string result = controller.Put(user);

            Assert.AreEqual("Record updated Successfully", result);
        }