Cutterka
Cutterka
CC#
Created by Cutterka on 5/16/2024 in #help
Unit testing
I have another question, i get the same error as before when triying to pass an entier ZdravnikViewModel to my test method, could it be related to the same problem as before?
15 replies
CC#
Created by Cutterka on 5/16/2024 in #help
Unit testing
no i am not, so if i just build a new ApplicationDbContext as before and pass the options, it doesnt automatically recognise the already created database?
15 replies
CC#
Created by Cutterka on 5/16/2024 in #help
Unit testing
okay thank you so much i added context.Database.EnsureCreated() and now it finally works
15 replies
CC#
Created by Cutterka on 5/16/2024 in #help
Unit testing
what do you mean exactly by exist in the physical database ? my database exist for sure because i can see it in DbBrowser, but context.Database isnt only used when creating a InMemo database?
15 replies