public void Success_UpdateUserProduct()
        {
            //Arrange
            int         index;
            string      result;
            UserProduct old_user_product;
            UserProduct new_user_product;

            //Act
            index            = 56;
            old_user_product = new UserProduct
            {
                ProductId = products[index].Id,
                Username  = user.Username,
                IsActive  = false
            };

            result = db_userproduct.CreateUserProduct(old_user_product);

            if (result.Equals("Success"))
            {
                index++;
                new_user_product = new UserProduct
                {
                    ProductId = products[index].Id,
                    Username  = user.Username
                };

                result = db_userproduct.UpdateUserProduct(old_user_product, new_user_product);
            }

            //Assert
            Assert.AreEqual("Success", result);
        }
 /// <summary>
 /// Updates a user product.
 /// </summary>
 /// <param name="old_user_product"></param>
 /// <param name="new_user_product"></param>
 /// <returns>string</returns>
 public string Update(UserProduct old_user_product, UserProduct new_user_product)
 {
     return(db_userproduct.UpdateUserProduct(old_user_product, new_user_product));
 }