|
8 | 8 |
|
9 | 9 | namespace SqlcGenCsharpTests
|
10 | 10 | {
|
11 |
| - public class NpgsqlDapperTests : IExecLastIdTester |
| 11 | + public partial class NpgsqlDapperTester : IExecLastIdTester |
12 | 12 | {
|
13 | 13 | private QuerySql QuerySql { get; } = new QuerySql(
|
14 | 14 | Environment.GetEnvironmentVariable(EndToEndCommon.PostgresConnectionStringEnv));
|
@@ -143,29 +143,11 @@ private static bool Equals(QuerySql.GetNodePostgresTypeRow x, QuerySql.GetNodePo
|
143 | 143 | x.CIntegerArray.SequenceEqual(y.CIntegerArray);
|
144 | 144 | }
|
145 | 145 |
|
146 |
| - private static bool Equals(QuerySql.GetAuthorRow x, QuerySql.GetAuthorRow y) |
147 |
| - { |
148 |
| - return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio); |
149 |
| - } |
150 |
| - |
151 | 146 | private static bool Equals(QuerySql.GetAuthorByIdRow x, QuerySql.GetAuthorByIdRow y)
|
152 | 147 | {
|
153 | 148 | return x.Id.Equals(y.Id) && x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);
|
154 | 149 | }
|
155 | 150 |
|
156 |
| - private static bool Equals(QuerySql.ListAuthorsRow x, QuerySql.ListAuthorsRow y) |
157 |
| - { |
158 |
| - return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio); |
159 |
| - } |
160 |
| - |
161 |
| - private static bool SequenceEquals(List<QuerySql.ListAuthorsRow> x, List<QuerySql.ListAuthorsRow> y) |
162 |
| - { |
163 |
| - if (x.Count != y.Count) return false; |
164 |
| - x = x.OrderBy<QuerySql.ListAuthorsRow, object>(o => o.Name + o.Bio).ToList(); |
165 |
| - y = y.OrderBy<QuerySql.ListAuthorsRow, object>(o => o.Name + o.Bio).ToList(); |
166 |
| - return !x.Where((t, i) => !Equals(t, y[i])).Any(); |
167 |
| - } |
168 |
| - |
169 | 151 | private static bool Equals(QuerySql.SelectAuthorsWithSliceRow x, QuerySql.SelectAuthorsWithSliceRow y)
|
170 | 152 | {
|
171 | 153 | return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);
|
|
0 commit comments