コード例 #1
0
 /// <summary>
 /// Gets the product user by product user identifier.
 /// </summary>
 /// <param name="productUserId">The product user identifier.</param>
 /// <returns></returns>
 public ProductUserEntity GetProductUserByProductUserId(long productUserId)
 {
     try
     {
         return(ConvertDataSetToProductUserEntity(InitializeProductUserDataProcess.GetProductUserByProductUserId(productUserId)));
     }
     catch (Exception exception)
     {
         return(new ProductUserEntity {
             IsSuccess = false, Message = exception.Message == BusinessLogicResource.EMAIL_ADDRESS_ALREADY_EXISTS ? BusinessLogicResource.ERROR_EMAIL_ADDRESS_ALREADY_EXISTS : exception.InnerException?.Message ?? exception.Message
         });
     }
 }
コード例 #2
0
        public void GetProductUserByProductUserId()
        {
            var response = InitializeProductUserDataProcess.GetProductUserByProductUserId(100001);

            Assert.IsTrue(response != null && response.Tables[0].Rows.Count > 0);
        }