/// <summary> /// Gets the product user by product identifier. /// </summary> /// <param name="productId">The product identifier.</param> /// <returns></returns> public ProductUserCollection GetProductUserByProductId(int productId) { try { return(ConvertDataSetToProductUserCollection(InitializeProductUserDataProcess.GetProductUserByProductId(productId))); } catch (Exception exception) { return(new ProductUserCollection { IsSuccess = false, Message = exception.InnerException?.Message ?? exception.Message }); } }
public void GetProductUserByProductId() { var response = InitializeProductUserDataProcess.GetProductUserByProductId(1); Assert.IsTrue(response != null && response.Tables[0].Rows.Count > 0); }