Exemplo n.º 1
0
        /// <summary>
        ///   <para></para>
        /// </summary>
        /// <param name="html"></param>
        /// <param name="builder"></param>
        /// <returns></returns>
        /// <exception cref="ArgumentNullException">If either <paramref name="html"/> or <paramref name="builder"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IRobokassaHtmlHelper.PaymentForm()"/>
        public static string PaymentForm(this IRobokassaHtmlHelper html, Action <IRobokassaPaymentFormWidget> builder)
        {
            Assertion.NotNull(html);
            Assertion.NotNull(builder);

            var widget = html.PaymentForm();

            builder(widget);
            return(widget.ToHtmlString());
        }
        /// <summary>
        ///   <para>Initializes HTML helper object for rendering of Pinterest widgets.</para>
        /// </summary>
        /// <param name="html">Helper object to call method on.</param>
        /// <returns>Widgets factory helper.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="html"/> is a <c>null</c> reference.</exception>
        public static IRobokassaHtmlHelper Robokassa(this HtmlHelper html)
        {
            Assertion.NotNull(html);

            return(robokassa ?? (robokassa = new RobokassaHtmlHelper()));
        }
    /// <summary>
    ///   <para>Initializes HTML helper object for rendering of Pinterest widgets.</para>
    /// </summary>
    /// <param name="html">Helper object to call method on.</param>
    /// <returns>Widgets factory helper.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="html"/> is a <c>null</c> reference.</exception>
    public static IRobokassaHtmlHelper Robokassa(this HtmlHelper html)
    {
      Assertion.NotNull(html);

      return robokassa ?? (robokassa = new RobokassaHtmlHelper());
    }