예제 #1
0
        public void Success_CreateUserProduct()
        {
            //Arrange
            int         index;
            string      result;
            UserProduct user_product;

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

            result = db_userproduct.CreateUserProduct(user_product);

            //Assert
            Assert.AreEqual("Success", result);
        }
 /// <summary>
 /// Creates a user product.
 /// </summary>
 /// <param name="user_product"></param>
 /// <returns>string</returns>
 public string Create(UserProduct user_product)
 {
     return(db_userproduct.CreateUserProduct(user_product));
 }