private static FormRenderOptions Build(Action <FormRenderOptions> configuration) { var options = new FormRenderOptions(); configuration(options); return(options); }
protected FormViewRenderer(FormRenderOptions options) { ViewLocation = options.ViewPath ?? throw new ArgumentNullException(nameof(options.ViewPath)); BizForm = options.BizForm ?? throw new ArgumentNullException(nameof(options.BizForm)); FormattedViewLocation = string.Format(ViewLocation, BizForm.FormName); }