public GridCustomActionCommandTests()
        {
            command = new GridCustomActionCommand<Customer>();
            command.ControllerName = "Home";
            command.ActionName = "Index";

            localization = new Mock<IGridLocalization>();
            urlBuilder = new Mock<IGridUrlBuilder>();
            urlBuilder.Setup(u => u.GetDataKeys()).Returns(new IGridDataKey[0]).Verifiable();
            htmlHelper = new Mock<IGridHtmlHelper>();
        }
        /// <summary>
        /// Defines a custom command.
        /// </summary>
        /// <returns></returns>
        public GridCustomActionCommandBuilder <T> Custom(string name)
        {
            var command = new GridCustomActionCommand <T>();

            command.Name = name;
            command.Text = name;

            Column.Commands.Add(command);

            return(new GridCustomActionCommandBuilder <T>(command));
        }
        /// <summary>
        /// Defines a custom command.
        /// </summary>
        /// <returns></returns>
        public GridCustomActionCommandBuilder <T> Custom(string name)
        {
            Guard.IsNotNullOrEmpty(name, "name");

            var command = new GridCustomActionCommand <T>();

            command.Name = name;

            Column.Commands.Add(command);

            return(new GridCustomActionCommandBuilder <T>(command));
        }
 public GridCustomActionCommandBuilder(GridCustomActionCommand <T> command) : base(command)
 {
 }