You might find this answer useful. It states:
We can often use any class from the project being tested that is sufficiently exposed to the test project.
Try to use a class that belongs to only the project you are testing as the type parameter for the WepApplicationFactory.