Moqing Entity Framework 6 .Include() using DbSet<>

前端 未结 5 959
南笙
南笙 2020-12-07 17:47

I\'d like to give the background to this question. Skip if you like. For quite a while I\'ve paid close attention to the on going debates on stackoverflow and elsewhere rega

5条回答
  •  抹茶落季
    2020-12-07 18:25

    The example DbSet provided by the EF team is just that: an example.

    If you want to mock Include (or FindAsync), you'll have to do it yourself.

提交回复
热议问题