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