EntityFramework.Filters icon indicating copy to clipboard operation
EntityFramework.Filters copied to clipboard

Expose filter configuration to enable unit testing

Open leddt opened this issue 10 years ago • 0 comments

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));

leddt avatar Jul 09 '14 22:07 leddt