private IRenderedFragment Factory(RazorTestContext context, RenderFragment fragment) => new RenderedFragment(context, fragment);
private IRenderedComponent <TComponent> Factory <TComponent>(RazorTestContext context, RenderFragment fragment) where TComponent : class, IComponent => new RenderedComponent <TComponent>(context, fragment);