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
[TestFixture] | |
public class MyTests | |
{ | |
[Test] | |
public void SampleTest() | |
{ | |
// some operations here, like starting a server for tests in-memory... | |
TestContext.Progress.WriteLine("The server is running now! You can reach it on https://localhost:8067/"); | |
while (true) |
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
[TestFixture] | |
public class MyTests | |
{ | |
[Test] | |
public void SampleTest() | |
{ | |
// some operations here, like starting a server for tests in-memory... | |
// TODO: inform the 'user' (the one who runs the test) that the server is already running | |
while (true) |
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
public class SQLiteInMemoryConnectionProvider : DriverConnectionProvider | |
{ | |
private static DbConnection? _connection = null; | |
public override DbConnection GetConnection() | |
{ | |
return _connection ??= base.GetConnection(); | |
} | |
public override async Task<DbConnection> GetConnectionAsync(CancellationToken cancellationToken) |
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
public class SQLiteInMemoryConnectionProvider : DriverConnectionProvider | |
{ | |
private AsyncLocal<DbConnection> _connection = new AsyncLocal<DbConnection>(); | |
public override DbConnection? GetConnection() | |
{ | |
return _connection.Value ??= base.GetConnection(); | |
} | |
public override void CloseConnection(DbConnection conn) { } |
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
public class SQLiteInMemoryConnectionProvider : DriverConnectionProvider | |
{ | |
private static DbConnection? _connection = null; | |
public override DbConnection? GetConnection() | |
{ | |
return _connection ??= base.GetConnection(); | |
} | |
public override void CloseConnection(DbConnection conn) { } |
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
resolve: { | |
alias: { | |
siteCss: path.resolve(__dirname, "Content/Site.css") | |
} |
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
resolve: { | |
alias: { | |
siteCss: path.resolve(__dirname, "Content/site.css") | |
} |
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
import QuestionnaireCorrectTemplate from "./questionnaireCorrectTemplate"; |
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
import QuestionnaireCorrectTemplate from "./QuestionnaireCorrectTemplate"; |
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
"scripts": { | |
"build:dev:watch": "webpack --watch --config webpack.config.dev.js NODE_ENV=development" | |
} |