Skip to content

Commit

Permalink
Need to do a workaround from: dotnet/efcore#6872 (comment) or use SQL…
Browse files Browse the repository at this point in the history
…ite insted of InMemory
  • Loading branch information
MadTiger2409 committed Aug 16, 2019
1 parent 1d7a86f commit dabb873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ public class InMemoryDatabaseFixture : IDisposable
public InMemoryDatabaseFixture()
{
var options = new DbContextOptionsBuilder<DeskberryContext>()
.UseInMemoryDatabase(databaseName: "test_database")
.UseInMemoryDatabase(Guid.NewGuid().ToString())
.Options;

Context = new DeskberryContext(options);
}

public void Dispose()
{
Context.Database.EnsureDeleted();
Context.Dispose();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public void GetById_RecordExists_Foud(string login, byte[] passwordHash, byte[]
count = databaseFixture.Context.Accounts.Count();

// Assert
//Assert.Equal(1, count);
Assert.Equal(1, account.Id);
}

Expand Down

0 comments on commit dabb873

Please sign in to comment.