Skip to content

Commit

Permalink
test: setup databasecontext for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BerendWouters committed Jan 30, 2024
1 parent c6a552c commit 3db7d70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Singer.API/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Singer.API/ClientApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Singer",
"version": "0.1.0-issue-msal.1588",
"version": "0.1.0-issue-msal.1589",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
8 changes: 4 additions & 4 deletions Tests/TestData/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public abstract class BaseTest
[SetUp]
public virtual void Setup()
{
//var options = new DbContextOptionsBuilder<ApplicationDbContext>()
// .UseInMemoryDatabase(Guid.NewGuid().ToString())
// .Options;
var options = new DbContextOptionsBuilder<ApplicationDbContext>()
.UseInMemoryDatabase(Guid.NewGuid().ToString())
.Options;

//TestDataContext = new ApplicationDbContext(options);
TestDataContext = new ApplicationDbContext(options);
}


Expand Down

0 comments on commit 3db7d70

Please sign in to comment.