21 references to SimpleComponent
Microsoft.AspNetCore.Components.Endpoints.Tests (21)
EndpointHtmlRendererTest.cs (15)
81
var result = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), new InteractiveWebAssemblyRenderMode(prerender: false), ParameterView.Empty);
92
Assert.Equal(typeof(
SimpleComponent
).Assembly.GetName().Name, marker.Assembly);
93
Assert.Equal(typeof(
SimpleComponent
).FullName, marker.TypeName);
171
var result = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), RenderMode.InteractiveWebAssembly, ParameterView.Empty);
183
Assert.Equal(typeof(
SimpleComponent
).Assembly.GetName().Name, preambleMarker.Assembly);
184
Assert.Equal(typeof(
SimpleComponent
).FullName, preambleMarker.TypeName);
383
var result = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), null, ParameterView.Empty);
400
var result = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), new InteractiveServerRenderMode(false), ParameterView.Empty);
415
Assert.Equal(typeof(
SimpleComponent
).Assembly.GetName().Name, serverComponent.AssemblyName);
416
Assert.Equal(typeof(
SimpleComponent
).FullName, serverComponent.TypeName);
432
var result = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), RenderMode.InteractiveServer, ParameterView.Empty);
449
Assert.Equal(typeof(
SimpleComponent
).Assembly.GetName().Name, serverComponent.AssemblyName);
450
Assert.Equal(typeof(
SimpleComponent
).FullName, serverComponent.TypeName);
493
var firstResult = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), new InteractiveServerRenderMode(true), ParameterView.Empty);
497
var secondResult = await renderer.PrerenderComponentAsync(httpContext, typeof(
SimpleComponent
), new InteractiveServerRenderMode(false), ParameterView.Empty);
RazorComponentResultTest.cs (6)
28
Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(
SimpleComponent
), (object)null));
29
Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(
SimpleComponent
), null));
36
var result = new RazorComponentResult(typeof(
SimpleComponent
), paramsDict);
45
var result = new RazorComponentResult(typeof(
SimpleComponent
), new { Param1 = 123, Param2 = "Another" });
55
var result = new RazorComponentResult<
SimpleComponent
>();
73
var result = new RazorComponentResult<
SimpleComponent
>