Page 1 of 1

Mocking an dbContext for fast integration tests

Posted: Mon 01 Jul 2019 19:47
by Neefster
Hi,

Is there any way to create a dbContext that runs completely within memory? Something like the TVirtualTable functionality that SDAC has, but for Oracle? Thanks!

Re: Mocking an dbContext for fast integration tests

Posted: Thu 04 Jul 2019 19:48
by Shalex
You should specify .UseInMemoryDatabase() instead of .UseOracle() in your DbContextOptionsBuilder to work with InMemory provider: https://docs.microsoft.com/en-us/ef/cor ... /in-memory.