@@ -15,18 +15,18 @@ public static class Templates
15
15
[Test]
16
16
public async Task TestOne()
17
17
{
18
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
18
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
19
19
{
20
20
Name = DataGenerator.BojackAuthor,
21
21
Bio = DataGenerator.BojackTheme
22
22
});
23
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
23
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
24
24
{
25
25
Name = DataGenerator.DrSeussAuthor,
26
26
Bio = DataGenerator.DrSeussQuote
27
27
});
28
28
29
- var actualAuthor = await QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
29
+ var actualAuthor = await this. QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
30
30
{
31
31
Name = DataGenerator.BojackAuthor
32
32
});
@@ -42,18 +42,18 @@ await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
42
42
[Test]
43
43
public async Task TestOne()
44
44
{
45
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
45
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
46
46
{
47
47
Name = DataGenerator.BojackAuthor,
48
48
Bio = DataGenerator.BojackTheme
49
49
});
50
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
50
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
51
51
{
52
52
Name = DataGenerator.DrSeussAuthor,
53
53
Bio = DataGenerator.DrSeussQuote
54
54
});
55
55
56
- var actual = await QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
56
+ var actual = await this. QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
57
57
{
58
58
Name = DataGenerator.BojackAuthor
59
59
});
@@ -77,18 +77,18 @@ private static bool Equals(QuerySql.GetAuthorRow x, QuerySql.GetAuthorRow y)
77
77
[Test]
78
78
public async Task TestMany()
79
79
{
80
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
80
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
81
81
{
82
82
Name = DataGenerator.BojackAuthor,
83
83
Bio = DataGenerator.BojackTheme
84
84
});
85
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
85
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
86
86
{
87
87
Name = DataGenerator.DrSeussAuthor,
88
88
Bio = DataGenerator.DrSeussQuote
89
89
});
90
90
91
- var actualAuthors = await QuerySql.ListAuthors();
91
+ var actualAuthors = await this. QuerySql.ListAuthors();
92
92
ClassicAssert.AreEqual(2, actualAuthors.Count);
93
93
Assert.That(actualAuthors is [
94
94
{
@@ -106,18 +106,18 @@ await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
106
106
[Test]
107
107
public async Task TestMany()
108
108
{
109
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
109
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
110
110
{
111
111
Name = DataGenerator.BojackAuthor,
112
112
Bio = DataGenerator.BojackTheme
113
113
});
114
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
114
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
115
115
{
116
116
Name = DataGenerator.DrSeussAuthor,
117
117
Bio = DataGenerator.DrSeussQuote
118
118
});
119
119
120
- var actual = await QuerySql.ListAuthors();
120
+ var actual = await this. QuerySql.ListAuthors();
121
121
122
122
var debug = actual.Select(x => $"name: {x.Name} bio: {x.Bio}");
123
123
foreach (var line in debug)
@@ -154,21 +154,21 @@ private static bool SequenceEquals(List<QuerySql.ListAuthorsRow> x, List<QuerySq
154
154
[Test]
155
155
public async Task TestExec()
156
156
{
157
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
157
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
158
158
{
159
159
Name = DataGenerator.BojackAuthor,
160
160
Bio = DataGenerator.BojackTheme
161
161
});
162
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
162
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
163
163
{
164
164
Name = DataGenerator.DrSeussAuthor,
165
165
Bio = DataGenerator.DrSeussQuote
166
166
});
167
167
168
168
var deleteAuthorArgs = new QuerySql.DeleteAuthorArgs { Name = DataGenerator.BojackAuthor };
169
- await QuerySql.DeleteAuthor(deleteAuthorArgs);
169
+ await this. QuerySql.DeleteAuthor(deleteAuthorArgs);
170
170
171
- var authorRows = await QuerySql.ListAuthors();
171
+ var authorRows = await this. QuerySql.ListAuthors();
172
172
ClassicAssert.AreEqual(1, authorRows.Count);
173
173
Assert.That(authorRows[0] is
174
174
{
@@ -181,16 +181,16 @@ await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
181
181
[Test]
182
182
public async Task TestExec()
183
183
{
184
- await QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
184
+ await this. QuerySql.CreateAuthor(new QuerySql.CreateAuthorArgs
185
185
{
186
186
Name = DataGenerator.BojackAuthor,
187
187
Bio = DataGenerator.BojackTheme
188
188
});
189
- await QuerySql.DeleteAuthor(new QuerySql.DeleteAuthorArgs
189
+ await this. QuerySql.DeleteAuthor(new QuerySql.DeleteAuthorArgs
190
190
{
191
191
Name = DataGenerator.BojackAuthor
192
192
});
193
- var actual = await QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
193
+ var actual = await this. QuerySql.GetAuthor(new QuerySql.GetAuthorArgs
194
194
{
195
195
Name = DataGenerator.BojackAuthor
196
196
});
@@ -209,14 +209,14 @@ public async Task TestExecRows()
209
209
Name = DataGenerator.GenericAuthor,
210
210
Bio = DataGenerator.GenericQuote1
211
211
};
212
- await QuerySql.CreateAuthor(bojackCreateAuthorArgs);
213
- await QuerySql.CreateAuthor(bojackCreateAuthorArgs);
212
+ await this. QuerySql.CreateAuthor(bojackCreateAuthorArgs);
213
+ await this. QuerySql.CreateAuthor(bojackCreateAuthorArgs);
214
214
215
215
var updateAuthorsArgs = new QuerySql.UpdateAuthorsArgs
216
216
{
217
217
Bio = DataGenerator.GenericQuote2
218
218
};
219
- var affectedRows = await QuerySql.UpdateAuthors(updateAuthorsArgs);
219
+ var affectedRows = await this. QuerySql.UpdateAuthors(updateAuthorsArgs);
220
220
ClassicAssert.AreEqual(2, affectedRows);
221
221
}
222
222
""" ,
@@ -229,14 +229,14 @@ public async Task TestExecRows()
229
229
Name = DataGenerator.GenericAuthor,
230
230
Bio = DataGenerator.GenericQuote1
231
231
};
232
- await QuerySql.CreateAuthor(bojackCreateAuthorArgs);
233
- await QuerySql.CreateAuthor(bojackCreateAuthorArgs);
232
+ await this. QuerySql.CreateAuthor(bojackCreateAuthorArgs);
233
+ await this. QuerySql.CreateAuthor(bojackCreateAuthorArgs);
234
234
235
235
var updateAuthorsArgs = new QuerySql.UpdateAuthorsArgs
236
236
{
237
237
Bio = DataGenerator.GenericQuote2
238
238
};
239
- var affectedRows = await QuerySql.UpdateAuthors(updateAuthorsArgs);
239
+ var affectedRows = await this. QuerySql.UpdateAuthors(updateAuthorsArgs);
240
240
ClassicAssert.AreEqual(2, affectedRows);
241
241
}
242
242
"""
0 commit comments