Added extension method for IEnumerable<T> that simply returns new TestAsyncEnumerableEfCore<T> for the input enumerable.
Using TestAsyncEnumerableEfCore<T> directly instead of going through a mocking framework is much faster. See the related issue for benchmark and details. It should behave the same way since all BuildMock does is forward interface calls to the underlying TestAsyncEnumerableEfCore anyway.
Related Issue
55
How Has This Been Tested
New test class (MyServiceNoMockTests) with tests copied from MyServiceMoqTests converted to not use Moq.
Checklist
[x] My code follows the code style of this project.
PR Details
Added extension method for
IEnumerable<T>
that simply returnsnew TestAsyncEnumerableEfCore<T>
for the input enumerable.Using
TestAsyncEnumerableEfCore<T>
directly instead of going through a mocking framework is much faster. See the related issue for benchmark and details. It should behave the same way since allBuildMock
does is forward interface calls to the underlyingTestAsyncEnumerableEfCore
anyway.Related Issue
55
How Has This Been Tested
New test class (
MyServiceNoMockTests
) with tests copied fromMyServiceMoqTests
converted to not use Moq.Checklist