-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
32 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
using System.Data; | ||
using System.Threading.Tasks; | ||
using System.Linq; | ||
using Dapper.AOT.Test.Integration.Setup; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Dapper.AOT.Test.Integration; | ||
|
||
[Collection(SharedPostgresqlClient.Collection)] | ||
public class DbStringTests : InterceptedCodeExecutionTestsBase | ||
public class DbStringTests | ||
{ | ||
public DbStringTests(PostgresqlFixture fixture, ITestOutputHelper log) : base(fixture, log) | ||
private PostgresqlFixture _fixture; | ||
|
||
public DbStringTests(PostgresqlFixture fixture) | ||
{ | ||
Fixture.NpgsqlConnection.Execute(""" | ||
_fixture = fixture; | ||
fixture.NpgsqlConnection.Execute(""" | ||
CREATE TABLE IF NOT EXISTS dbStringTable( | ||
id integer PRIMARY KEY, | ||
name varchar(40) NOT NULL CHECK (name <> '') | ||
); | ||
TRUNCATE dbStringTable; | ||
"""); | ||
""" | ||
); | ||
} | ||
|
||
[Fact] | ||
[DapperAot] | ||
public async Task Test() | ||
public void ExecuteMulti() | ||
{ | ||
var sourceCode = PrepareSourceCodeFromFile("DbString"); | ||
var executionResults = BuildAndExecuteInterceptedUserCode<int>(sourceCode, methodName: "ExecuteAsync"); | ||
|
||
// TODO DO THE CHECK HERE | ||
|
||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
test/Dapper.AOT.Test.Integration/InterceptionExecutables/DbString.cs
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
test/Dapper.AOT.Test.Integration/InterceptionExecutables/_Template.cs
This file was deleted.
Oops, something went wrong.
140 changes: 0 additions & 140 deletions
140
test/Dapper.AOT.Test.Integration/Setup/InterceptedCodeExecutionTestsBase.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters