public void Put_User_ShouldReturnStatusCode()
        {
            var controller = new UsersController(new TestUserContext());

            var item = GetDemoUser();

            var result = controller.PutUser(item.UserId, item) as StatusCodeResult;
            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(StatusCodeResult));
            Assert.AreEqual(HttpStatusCode.NoContent, result.StatusCode);
        }
        public void Put_User_Should_Fail_When_DifferentID()
        {
            var controller = new UsersController(new TestUserContext());

            var badresult = controller.PutUser(999, GetDemoUser());
            Assert.IsInstanceOfType(badresult, typeof(BadRequestResult));
        }