Closed dmitryrusak closed 4 years ago
The GetAll should be a function, not a property. So you want to say GetAll()
with the brackets.
As far as I know, you don't have to do GetUpdates(), the idea is not refresh, but just to ask "in this context, what is not yet submitted to database", which is nothing.
Thanks for help, works now!
Description
Hi, i have tried to use SQLProvider to communicate with our MS SQL database. I have implemented two methods - one for getting all rows from the table and another one for creation (insertion) of a new row to a table. After that i have created a unit test which idea is to GetAll rows number , insert a new row and GetAll rows number again and check if its incremented by one. See the code below:
Repro steps
Expected behavior
I expected that b should be a+1 because the new row added.
Actual behavior
Wrong behaviour is in my test the b is the same is a, so the db context does not see the added row. (i see that the row added in the database)
Known workarounds
Please provide a description of any known workarounds.
Related information
Please explain what am i doing wrong