@@ -7,6 +7,207 @@ namespace Linq2GraphQL.TestClientNullable;
77
88public static class IF
99{
10+ public static AddressInput Address ( )
11+ {
12+ return new AddressInput ( ) ;
13+ }
14+ public static CustomerInput Customer ( )
15+ {
16+ return new CustomerInput ( ) ;
17+ }
18+ public static ItemInput Item ( )
19+ {
20+ return new ItemInput ( ) ;
21+ }
22+ public static OrderInput Order ( )
23+ {
24+ return new OrderInput ( ) ;
25+ }
26+ public static OrderLineInput OrderLine ( )
27+ {
28+ return new OrderLineInput ( ) ;
29+ }
1030}
1131
1232
33+
34+ public static class AddressInputExtensions
35+ {
36+
37+ public static AddressInput Name ( this AddressInput input , string val )
38+ {
39+ input . Name = val ;
40+ return input ;
41+ }
42+
43+
44+ public static AddressInput Street ( this AddressInput input , string val )
45+ {
46+ input . Street = val ;
47+ return input ;
48+ }
49+
50+
51+ public static AddressInput PostalCode ( this AddressInput input , string val )
52+ {
53+ input . PostalCode = val ;
54+ return input ;
55+ }
56+
57+ }
58+
59+ public static class CustomerInputExtensions
60+ {
61+
62+ public static CustomerInput CustomerId ( this CustomerInput input , Guid val )
63+ {
64+ input . CustomerId = val ;
65+ return input ;
66+ }
67+
68+
69+ public static CustomerInput CustomerName ( this CustomerInput input , string val )
70+ {
71+ input . CustomerName = val ;
72+ return input ;
73+ }
74+
75+
76+ public static CustomerInput Status ( this CustomerInput input , CustomerStatus val )
77+ {
78+ input . Status = val ;
79+ return input ;
80+ }
81+
82+ public static CustomerInput Orders ( this CustomerInput input , Action < List < OrderInput > > mod )
83+ {
84+ var filter = new List < OrderInput > ( ) ;
85+ mod ??= _ => { } ;
86+ mod ( filter ) ;
87+ input . Orders = filter ;
88+ return input ;
89+ }
90+
91+ public static CustomerInput Address ( this CustomerInput input , Action < AddressInput ? > mod )
92+ {
93+ var filter = new AddressInput ? ( ) ;
94+ mod ??= _ => { } ;
95+ mod ( filter ) ;
96+ input . Address = filter ;
97+ return input ;
98+ }
99+
100+ }
101+
102+ public static class ItemInputExtensions
103+ {
104+
105+ public static ItemInput ItemId ( this ItemInput input , string val )
106+ {
107+ input . ItemId = val ;
108+ return input ;
109+ }
110+
111+
112+ public static ItemInput ItemName ( this ItemInput input , string val )
113+ {
114+ input . ItemName = val ;
115+ return input ;
116+ }
117+
118+ }
119+
120+ public static class OrderInputExtensions
121+ {
122+
123+ public static OrderInput OrderId ( this OrderInput input , Guid val )
124+ {
125+ input . OrderId = val ;
126+ return input ;
127+ }
128+
129+ public static OrderInput Customer ( this OrderInput input , Action < CustomerInput > mod )
130+ {
131+ var filter = new CustomerInput ( ) ;
132+ mod ??= _ => { } ;
133+ mod ( filter ) ;
134+ input . Customer = filter ;
135+ return input ;
136+ }
137+
138+ public static OrderInput Address ( this OrderInput input , Action < AddressInput ? > mod )
139+ {
140+ var filter = new AddressInput ? ( ) ;
141+ mod ??= _ => { } ;
142+ mod ( filter ) ;
143+ input . Address = filter ;
144+ return input ;
145+ }
146+
147+
148+ public static OrderInput OrderDate ( this OrderInput input , DateTimeOffset val )
149+ {
150+ input . OrderDate = val ;
151+ return input ;
152+ }
153+
154+ public static OrderInput Lines ( this OrderInput input , Action < List < OrderLineInput > > mod )
155+ {
156+ var filter = new List < OrderLineInput > ( ) ;
157+ mod ??= _ => { } ;
158+ mod ( filter ) ;
159+ input . Lines = filter ;
160+ return input ;
161+ }
162+
163+
164+ public static OrderInput EntryTime ( this OrderInput input , TimeSpan ? val )
165+ {
166+ input . EntryTime = val ;
167+ return input ;
168+ }
169+
170+ }
171+
172+ public static class OrderLineInputExtensions
173+ {
174+
175+ public static OrderLineInput LineNumber ( this OrderLineInput input , int val )
176+ {
177+ input . LineNumber = val ;
178+ return input ;
179+ }
180+
181+ public static OrderLineInput Order ( this OrderLineInput input , Action < OrderInput > mod )
182+ {
183+ var filter = new OrderInput ( ) ;
184+ mod ??= _ => { } ;
185+ mod ( filter ) ;
186+ input . Order = filter ;
187+ return input ;
188+ }
189+
190+ public static OrderLineInput Item ( this OrderLineInput input , Action < ItemInput ? > mod )
191+ {
192+ var filter = new ItemInput ? ( ) ;
193+ mod ??= _ => { } ;
194+ mod ( filter ) ;
195+ input . Item = filter ;
196+ return input ;
197+ }
198+
199+
200+ public static OrderLineInput Price ( this OrderLineInput input , decimal val )
201+ {
202+ input . Price = val ;
203+ return input ;
204+ }
205+
206+
207+ public static OrderLineInput Quantity ( this OrderLineInput input , double val )
208+ {
209+ input . Quantity = val ;
210+ return input ;
211+ }
212+
213+ }
0 commit comments