Skip to content

Commit a783ac1

Browse files
committed
Add QL tests for remoteFlowSource
1 parent 12ebfa6 commit a783ac1

File tree

6 files changed

+819
-0
lines changed

6 files changed

+819
-0
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
// <auto-generated/>
2+
#pragma warning disable 1591
3+
namespace BlazorTest.Components
4+
{
5+
#line default
6+
using global::System;
7+
using global::System.Collections.Generic;
8+
using global::System.Linq;
9+
using global::System.Threading.Tasks;
10+
using global::Microsoft.AspNetCore.Components;
11+
#nullable restore
12+
using System.Net.Http
13+
14+
#nullable disable
15+
;
16+
#nullable restore
17+
using System.Net.Http.Json
18+
19+
#nullable disable
20+
;
21+
#nullable restore
22+
using Microsoft.AspNetCore.Components.Forms
23+
24+
#nullable disable
25+
;
26+
#nullable restore
27+
using Microsoft.AspNetCore.Components.Routing
28+
29+
#nullable disable
30+
;
31+
#nullable restore
32+
using Microsoft.AspNetCore.Components.Web
33+
34+
#nullable disable
35+
;
36+
#nullable restore
37+
using static Microsoft.AspNetCore.Components.Web.RenderMode
38+
39+
#nullable disable
40+
;
41+
#nullable restore
42+
using Microsoft.AspNetCore.Components.Web.Virtualization
43+
44+
#nullable disable
45+
;
46+
#nullable restore
47+
using Microsoft.JSInterop
48+
49+
#nullable disable
50+
;
51+
#nullable restore
52+
using BlazorTest
53+
54+
#nullable disable
55+
;
56+
#nullable restore
57+
using BlazorTest.Components
58+
59+
#line default
60+
#line hidden
61+
#nullable disable
62+
;
63+
[global::BlazorTest.Components.MyInput.__PrivateComponentRenderModeAttribute]
64+
#nullable restore
65+
public partial class MyInput : global::Microsoft.AspNetCore.Components.ComponentBase
66+
#nullable disable
67+
{
68+
#pragma warning disable 1998
69+
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
70+
{
71+
__builder.OpenElement(0, "input");
72+
__builder.AddAttribute(1, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue(
73+
#nullable restore
74+
Param1
75+
76+
#line default
77+
#line hidden
78+
#nullable disable
79+
));
80+
__builder.AddAttribute(2, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value =>
81+
{
82+
Param1 = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback:
83+
#nullable restore
84+
Fire
85+
86+
#line default
87+
#line hidden
88+
#nullable disable
89+
);
90+
}, value: Param1), Param1));
91+
__builder.SetUpdatesAttributeName("value");
92+
__builder.CloseElement();
93+
}
94+
#pragma warning restore 1998
95+
#nullable restore
96+
97+
[Parameter]
98+
public string? Param1 { get; set; } = "";
99+
100+
[Parameter]
101+
public EventCallback<string?> ValueChanged { get; set; }
102+
103+
[Parameter]
104+
public EventCallback<string?> Param1Changed { get; set; }
105+
106+
private void Fire()
107+
{
108+
ValueChanged.InvokeAsync(Param1);
109+
Param1Changed.InvokeAsync(Param1);
110+
}
111+
112+
#line default
113+
#line hidden
114+
#nullable disable
115+
116+
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
117+
{
118+
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
119+
;
120+
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
121+
}
122+
}
123+
}
124+
#pragma warning restore 1591
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// <auto-generated/>
2+
#pragma warning disable 1591
3+
namespace BlazorTest.Components
4+
{
5+
#line default
6+
using global::System;
7+
using global::System.Collections.Generic;
8+
using global::System.Linq;
9+
using global::System.Threading.Tasks;
10+
using global::Microsoft.AspNetCore.Components;
11+
#nullable restore
12+
using System.Net.Http
13+
14+
#nullable disable
15+
;
16+
#nullable restore
17+
using System.Net.Http.Json
18+
19+
#nullable disable
20+
;
21+
#nullable restore
22+
using Microsoft.AspNetCore.Components.Forms
23+
24+
#nullable disable
25+
;
26+
#nullable restore
27+
using Microsoft.AspNetCore.Components.Routing
28+
29+
#nullable disable
30+
;
31+
#nullable restore
32+
using Microsoft.AspNetCore.Components.Web
33+
34+
#nullable disable
35+
;
36+
#nullable restore
37+
using static Microsoft.AspNetCore.Components.Web.RenderMode
38+
39+
#nullable disable
40+
;
41+
#nullable restore
42+
using Microsoft.AspNetCore.Components.Web.Virtualization
43+
44+
#nullable disable
45+
;
46+
#nullable restore
47+
using Microsoft.JSInterop
48+
49+
#nullable disable
50+
;
51+
#nullable restore
52+
using BlazorTest
53+
54+
#nullable disable
55+
;
56+
#nullable restore
57+
using BlazorTest.Components
58+
59+
#line default
60+
#line hidden
61+
#nullable disable
62+
;
63+
[global::BlazorTest.Components.MyOutput.__PrivateComponentRenderModeAttribute]
64+
#nullable restore
65+
public partial class MyOutput : global::Microsoft.AspNetCore.Components.ComponentBase
66+
#nullable disable
67+
{
68+
#pragma warning disable 1998
69+
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
70+
{
71+
__builder.OpenElement(0, "div");
72+
__builder.OpenElement(1, "p");
73+
__builder.AddContent(2, "Value from InputText: ");
74+
__builder.AddContent(3,
75+
#nullable restore
76+
Value
77+
78+
#line default
79+
#line hidden
80+
#nullable disable
81+
);
82+
__builder.CloseElement();
83+
__builder.AddMarkupContent(4, "\n ");
84+
__builder.OpenElement(5, "p");
85+
__builder.AddContent(6, "Raw value from InputText: ");
86+
__builder.AddContent(7,
87+
#nullable restore
88+
new MarkupString(Value)
89+
90+
#line default
91+
#line hidden
92+
#nullable disable
93+
);
94+
__builder.CloseElement();
95+
__builder.CloseElement();
96+
}
97+
#pragma warning restore 1998
98+
#nullable restore
99+
100+
[Parameter]
101+
public string Value { get; set; } = "";
102+
103+
#line default
104+
#line hidden
105+
#nullable disable
106+
107+
private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute
108+
{
109+
private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer
110+
;
111+
public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl;
112+
}
113+
}
114+
}
115+
#pragma warning restore 1591

0 commit comments

Comments
 (0)