{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4373","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4373/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4373/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4373/events","html_url":"https://github.com/aspnet/EntityFramework/issues/4373","id":128161268,"number":4373,"title":"[Question] Multiple In Memory Databases of same context","user":{"login":"Abrissirba","id":5156241,"avatar_url":"https://avatars.githubusercontent.com/u/5156241?v=3","gravatar_id":"","url":"https://api.github.com/users/Abrissirba","html_url":"https://github.com/Abrissirba","followers_url":"https://api.github.com/users/Abrissirba/followers","following_url":"https://api.github.com/users/Abrissirba/following{/other_user}","gists_url":"https://api.github.com/users/Abrissirba/gists{/gist_id}","starred_url":"https://api.github.com/users/Abrissirba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abrissirba/subscriptions","organizations_url":"https://api.github.com/users/Abrissirba/orgs","repos_url":"https://api.github.com/users/Abrissirba/repos","events_url":"https://api.github.com/users/Abrissirba/events{/privacy}","received_events_url":"https://api.github.com/users/Abrissirba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-22T13:55:31Z","updated_at":"2016-01-26T16:53:49Z","closed_at":"2016-01-22T18:08:41Z","body":"I'm trying to use EF7 In Memory Database for my unit/integration tests written with xUnit. At the moment the tests are executed in parallel. All tests uses the same DbContext class.\r\n\r\nThe tests are written so that the db should be \"clean\" for each test suit.This is working as long as I only have one test suite. As soon as I add one more suite I get problems. There is no way to guarantee that the db is \"clean\" in each test since the two test suites run in parallel. \r\n\r\nOne solution to this is of course to run each test sequentially but I would prefer if it was possible to run them in parallel. One solution to this would be that each test suite gets its own isolated in memory database, even though the same DbContext class is used. Is this possible today?"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/175112985","html_url":"https://github.com/aspnet/EntityFramework/issues/4373#issuecomment-175112985","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4373","id":175112985,"user":{"login":"bryanjhogan","id":5768871,"avatar_url":"https://avatars.githubusercontent.com/u/5768871?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanjhogan","html_url":"https://github.com/bryanjhogan","followers_url":"https://api.github.com/users/bryanjhogan/followers","following_url":"https://api.github.com/users/bryanjhogan/following{/other_user}","gists_url":"https://api.github.com/users/bryanjhogan/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanjhogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanjhogan/subscriptions","organizations_url":"https://api.github.com/users/bryanjhogan/orgs","repos_url":"https://api.github.com/users/bryanjhogan/repos","events_url":"https://api.github.com/users/bryanjhogan/events{/privacy}","received_events_url":"https://api.github.com/users/bryanjhogan/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T16:53:48Z","updated_at":"2016-01-26T16:53:48Z","body":"Any suggestion on how to use EF 7 with ninject? \r\n\r\nI need to use a real db for the application and the inmemory option for testing. "}}