Exemple #1
0
        public static IRenderedComponent <TComponent> RenderComponent <TComponent>(
            this ITestContext context,
            Action <IComponentBuilder <TComponent> > builderCallback
            )
            where TComponent : class, IComponent
        {
            var builder = new ComponentBuilder <TComponent>();

            builderCallback(builder);
            return(context.RenderComponent <TComponent>(builder.Parameters.ToArray()));
        }