romantitov / MockQueryable

Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
MIT License
791 stars 77 forks source link

Restore support for netstandard2.0 #29

Closed dlemstra closed 4 years ago

dlemstra commented 4 years ago

Description

We would like to use this library in a project that does not support netstandard2.1 and it seems that this library and it's dependencies also work with netstandard2.0. This PR restores support for netstandard2.0 to make that possible. We would like to avoid duplicating your code in our project and this is why we submitted this PR.

How Has This Been Tested

In a project where we would like to use this library we added a reference to this project on disk and used .AsQueryable().BuildMockDbSet(). And in that test we also hit the ExecuteAsync method that has been changed because genericParameterCount is not supported in netstandard2.0.

Checklist

romantitov commented 4 years ago

@dlemstra Thanks for the PR, I'm gonna complete review and (if everything is ok) include the changes to next release during the week