Closed s04v closed 6 months ago
A unit test will be useful to ensure nothing broken in this case
Hello, @hishamco, there is a fully commented out StockServiceTests.cs file . Should I create a new file for the tests?
Seems it's commented :) you can uncomment the class and add your test cases, leave everything as it was
Why you are using MockQueryable.Moq
Because the FirstOrDefaultAsync
method is used in UpdateStock
. Calling FirstOrDefaultAsync
with Moq throws an exception that this method works only with IAsyncQueryProvider. MockQueryable.Moq helps to solve it
I see, let me do a quick check today then merge
Thanks
Any updates?
Sorry I was sick last few days, that's why I didn't give you an update
It's okay, take care of yourself.
Fix #1093