Open Closed

Write a test to test multiple Contexts #7327


0
joe704la created

In my application I have a service that gets data from 3 different databases. This works just fine with 3 different contexts. But now I would like to write an Integration test that tests this service. I am unsure how to do that with 3 different contexts. Does anyone have any suggestions?


2 Answer(s)
  • 0
    ismcagdas created

    Hi @joe704la

    What happens when you try to run your test which uses 3 different db contexts ?

  • 0
    joe704la created

    in the AppTestBase I added all the seed data for each DB context and it seems to work. Thanks