EntityFramework.Filters
EntityFramework.Filters copied to clipboard
Expose filter configuration to enable unit testing
I'm trying to write a unit test to verify that a specific filter is enabled under certain circumstances.
As it stands I have to create some data that I know will be filtered out.
It would be cleaner if I could write something like:
var filter = dbContext.GetFilter("MyFilter");
Assert.That(filter.Enabled, Is.True);
Assert.That(filter.Parameters["id"], Is.EqualTo(123));