This is the third project I'm working on that's based on Eisk. I've really enjoyed working with it.
I sure hope this makes sense...
Note: I'm working on a WebAPI 2 service right now.
The current situation is that I'm developing and doing preliminary development in a place where I don't have access to the test or production database. (I can get to them but not from the dev environment for now) What I'd like to do is have the Eick system
create, populate and then use an in memory database. What I'd like is for someone with a good knowledge of how Eick works to clue me in on how to go about that. All I'm looking for is a list of steps. Like:
- In Global.asax.cs, move the line DataInitializer.Init(); to after the DependencyInjectorInitializer.Init();
- In DataInitializer.cs, put a branch to select which data source to use (Pull that from the web.config)
- Create a new initializer that does something.
- Do some more stuff...
The main mental problem I'm having (related to this anyway) is how to connect to that virtual in memory database in real time. As in, I don't know how to set the context to it.
Why do I want to do this?
Besides the above mentioned issue about getting to the database(s) I also want to expand the scope of automated testing. I've got unit tests that are Mocking the data source and filling that data source from xml files. I've got some integration tests that are
using the same test data in the xml files. Now, I'm going to try and consume the data from the WebAPI 2 service but have the system mock all the data from those same xml files. In the end I want to populate the test database from those same xml files for testing.
Thanks for the help.