Skip to content

Commit

Permalink
chore: added test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewTriesToCode committed Nov 9, 2024
1 parent df1f0c1 commit 1ca9982
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,17 @@ public void CreateArbitraryDbContext()

Assert.NotNull(c);
}

[Fact]
public void ThrowOnInvalidDbContext()
{
var tenant1 = new TenantInfo
{
Id = "abc",
Identifier = "abc",
Name = "abc"
};

Assert.Throws<ArgumentException>(() => EntityFrameworkCore.MultiTenantDbContext.Create<DbContext, TenantInfo>(tenant1));
}
}

0 comments on commit 1ca9982

Please sign in to comment.