Skip to content

Commit 2338cf5

Browse files
committed
Update LocalDbTestBase.cs
1 parent a846508 commit 2338cf5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/DeltaTests/LocalDbTestBase.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ public abstract class LocalDbTestBase
33
{
44
static SqlInstance sqlInstance = new(
55
name: "DeltaTests",
6-
buildTemplate: DbBuilder.Create);
6+
buildTemplate: async connection =>
7+
{
8+
await DbBuilder.Create(connection);
9+
await using var command = connection.CreateCommand();
10+
command.CommandText =
11+
$"""
12+
insert into [Companies] (Id, Content)
13+
values ('{Guid.NewGuid()}', 'initial data')
14+
""";
15+
await command.ExecuteNonQueryAsync();
16+
});
717

818
public Task<SqlDatabase> LocalDb(string? testSuffix = null)
919
{

0 commit comments

Comments
 (0)