How do I mock AsNoTracking method? In below example, DbContext has injected to the service class.It works fine if I remove AsNoTracking extension method from GetOrderedP
you can use Entity Framework Effort to mock the AsNoTracking(), also you can mock the Db Transactions and Entity State by using Effort - Official site for Effort