Skip to content

Commit

Permalink
Merge pull request #200 from risperdal/master
Browse files Browse the repository at this point in the history
Fix TriggeredDbContextFactoryTests AddTriggeredDbContextFactory missing parameter
  • Loading branch information
koenbeuk authored Aug 19, 2024
2 parents 0d9619f + a68381e commit fc0ca32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public TestDbContext(DbContextOptions options)
public void DbContextFactory_RaisesTrigger_SharesDbContext()
{
using var serviceProvider = new ServiceCollection()
.AddTriggeredDbContextFactory<TestDbContext>(options => {
.AddTriggeredDbContextFactory<TestDbContext>((sp, options) => {
options.UseInMemoryDatabase(nameof(DbContextFactory_RaisesTrigger_SharesDbContext));
options.UseTriggers(triggerOptions => {
triggerOptions.AddTrigger<TestTrigger>();
Expand Down

0 comments on commit fc0ca32

Please sign in to comment.