forked from MoonStorm/FastCrud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCrud.feature.cs
666 lines (639 loc) · 43.4 KB
/
Crud.feature.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:2.3.0.0
// SpecFlow Generator Version:2.3.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
#pragma warning disable
namespace Dapper.FastCrud.Tests
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.3.0.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("CRUD tests")]
public partial class CRUDTestsFeature
{
private TechTalk.SpecFlow.ITestRunner testRunner;
#line 1 "Crud.feature"
#line hidden
[NUnit.Framework.OneTimeSetUpAttribute()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "CRUD tests", null, ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[NUnit.Framework.OneTimeTearDownAttribute()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}
[NUnit.Framework.SetUpAttribute()]
public virtual void TestInitialize()
{
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown()
{
testRunner.OnScenarioEnd();
}
public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
{
testRunner.OnScenarioStart(scenarioInfo);
}
public virtual void ScenarioCleanup()
{
testRunner.CollectScenarioErrors();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Batch update (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "10", "3", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "3", "2", "asynchronous", null)]
public virtual void BatchUpdateIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string skip, string max, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Batch update (in-memory database)", @__tags);
#line 4
this.ScenarioSetup(scenarioInfo);
#line 5
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 6
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 7
testRunner.And(string.Format("I batch update a maximum of {0} {1} entities skipping {2} and using {3} methods", max, entityType, skip, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 8
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 9
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Batch update (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "10", "3", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "10", "3", "2", "asynchronous", null)]
public virtual void BatchUpdateExternalDatabase(string databaseType, string entityType, string entityCount, string skip, string max, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Batch update (external database)", @__tags);
#line 18
this.ScenarioSetup(scenarioInfo);
#line 19
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 20
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 21
testRunner.And(string.Format("I batch update a maximum of {0} {1} entities skipping {2} and using {3} methods", max, entityType, skip, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 22
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 23
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Batch delete (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "3", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "3", "2", "asynchronous", null)]
public virtual void BatchDeleteIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string skip, string max, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Batch delete (in-memory database)", @__tags);
#line 32
this.ScenarioSetup(scenarioInfo);
#line 33
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 34
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 35
testRunner.And(string.Format("I batch delete a maximum of {0} {1} entities skipping {2} and using {3} methods", max, entityType, skip, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 36
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 37
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Batch delete (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "3", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "3", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "3", "2", "asynchronous", null)]
public virtual void BatchDeleteExternalDatabase(string databaseType, string entityType, string entityCount, string skip, string max, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Batch delete (external database)", @__tags);
#line 46
this.ScenarioSetup(scenarioInfo);
#line 47
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 48
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 49
testRunner.And(string.Format("I batch delete a maximum of {0} {1} entities skipping {2} and using {3} methods", max, entityType, skip, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 50
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 51
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Insert and select all (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "synchronous", null)]
public virtual void InsertAndSelectAllIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Insert and select all (in-memory database)", @__tags);
#line 60
this.ScenarioSetup(scenarioInfo);
#line 61
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 62
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 63
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 64
testRunner.And(string.Format("I query for the count of all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 65
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 66
testRunner.And(string.Format("the database count of the queried entities should be {0}", entityCount), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Conditional count (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "6", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "6", "synchronous", null)]
public virtual void ConditionalCountIn_MemoryDatabase(string databaseType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Conditional count (in-memory database)", @__tags);
#line 81
this.ScenarioSetup(scenarioInfo);
#line 82
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 83
testRunner.When(string.Format("I insert {0} building entities using {1} methods", entityCount, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 84
testRunner.And(string.Format("I query for the count of all the inserted building entities using {0} methods", methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 85
testRunner.Then(string.Format("the database count of the queried entities should be {0}", entityCount), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Insert and select all (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "synchronous", null)]
public virtual void InsertAndSelectAllExternalDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Insert and select all (external database)", @__tags);
#line 92
this.ScenarioSetup(scenarioInfo);
#line 93
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 94
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 95
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 96
testRunner.And(string.Format("I query for the count of all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 97
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 98
testRunner.And(string.Format("the database count of the queried entities should be {0}", entityCount), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Find (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "1", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "1", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "1", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "1", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "1", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "1", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "NULL", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "NULL", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "NULL", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "NULL", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "10", "1", "0", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "workstation", "10", "1", "0", "synchronous", null)]
public virtual void FindIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string max, string skip, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find (in-memory database)", @__tags);
#line 111
this.ScenarioSetup(scenarioInfo);
#line 112
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 113
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 114
testRunner.And(string.Format("I query for a maximum of {0} {1} entities reverse ordered skipping {2} records", max, entityType, skip), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 115
testRunner.Then(string.Format("the queried entities should be the same as the ones I inserted, in reverse order," +
" starting from {0} counting {1}", skip, max), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Find (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "1", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "1", "2", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "1", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "1", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "1", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "1", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "NULL", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "NULL", "2", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "NULL", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "NULL", "NULL", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "10", "1", "0", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "10", "1", "0", "synchronous", null)]
public virtual void FindExternalDatabase(string databaseType, string entityType, string entityCount, string max, string skip, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Find (external database)", @__tags);
#line 132
this.ScenarioSetup(scenarioInfo);
#line 133
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 134
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 135
testRunner.And(string.Format("I query for a maximum of {0} {1} entities reverse ordered skipping {2} records", max, entityType, skip), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 136
testRunner.Then(string.Format("the queried entities should be the same as the ones I inserted, in reverse order," +
" starting from {0} counting {1}", skip, max), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Insert and select by primary key (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "synchronous", null)]
public virtual void InsertAndSelectByPrimaryKeyIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Insert and select by primary key (in-memory database)", @__tags);
#line 153
this.ScenarioSetup(scenarioInfo);
#line 154
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 155
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 156
testRunner.And(string.Format("I query for the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 157
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Insert and select by primary key (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "synchronous", null)]
public virtual void InsertAndSelectByPrimaryKeyExternalDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Insert and select by primary key (external database)", @__tags);
#line 170
this.ScenarioSetup(scenarioInfo);
#line 171
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 172
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 173
testRunner.And(string.Format("I query for the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 174
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Update by primary keys (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "1", "synchronous", null)]
public virtual void UpdateByPrimaryKeysIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Update by primary keys (in-memory database)", @__tags);
#line 191
this.ScenarioSetup(scenarioInfo);
#line 192
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 193
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 194
testRunner.And(string.Format("I update all the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 195
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 196
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Update by primary keys (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "1", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "1", "synchronous", null)]
public virtual void UpdateByPrimaryKeysExternalDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Update by primary keys (external database)", @__tags);
#line 209
this.ScenarioSetup(scenarioInfo);
#line 210
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 211
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 212
testRunner.And(string.Format("I update all the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 213
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 214
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Partial update (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "3", "synchronous", null)]
public virtual void PartialUpdateIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Partial update (in-memory database)", @__tags);
#line 231
this.ScenarioSetup(scenarioInfo);
#line 232
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 233
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 234
testRunner.And(string.Format("I partially update all the inserted {0} entities", entityType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 235
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 236
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Partial update (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "3", "synchronous", null)]
public virtual void PartialUpdateExternalDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Partial update (external database)", @__tags);
#line 243
this.ScenarioSetup(scenarioInfo);
#line 244
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 245
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 246
testRunner.And(string.Format("I partially update all the inserted {0} entities", entityType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 247
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 248
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Delete by primary keys (in-memory database)")]
[NUnit.Framework.CategoryAttribute("InMemoryDatabase")]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("SqLite", "building", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "employee", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "workstation", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("LocalDb", "building", "3", "synchronous", null)]
public virtual void DeleteByPrimaryKeysIn_MemoryDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"InMemoryDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Delete by primary keys (in-memory database)", @__tags);
#line 257
this.ScenarioSetup(scenarioInfo);
#line 258
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 259
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 260
testRunner.And(string.Format("I delete all the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 261
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 262
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Delete by primary keys (external database)")]
[NUnit.Framework.CategoryAttribute("ExternalDatabase")]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "workstation", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "building", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "3", "asynchronous", null)]
[NUnit.Framework.TestCaseAttribute("MySql", "employee", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "employee", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "workstation", "3", "synchronous", null)]
[NUnit.Framework.TestCaseAttribute("PostgreSql", "building", "3", "synchronous", null)]
public virtual void DeleteByPrimaryKeysExternalDatabase(string databaseType, string entityType, string entityCount, string methodType, string[] exampleTags)
{
string[] @__tags = new string[] {
"ExternalDatabase"};
if ((exampleTags != null))
{
@__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags));
}
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Delete by primary keys (external database)", @__tags);
#line 275
this.ScenarioSetup(scenarioInfo);
#line 276
testRunner.Given(string.Format("I have initialized a {0} database", databaseType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 277
testRunner.When(string.Format("I insert {0} {1} entities using {2} methods", entityCount, entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 278
testRunner.And(string.Format("I delete all the inserted {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 279
testRunner.And(string.Format("I query for all the {0} entities using {1} methods", entityType, methodType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 280
testRunner.Then("the queried entities should be the same as the local ones", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
}
}
#pragma warning restore
#endregion