DAL Device Testing - Stop Connectivity During Unit Testing

I am testing the DAL module (data access level).

When I debug unit test before my unit test constructor runs, Visual Studio launches WcfSvcHost.

Why is he doing this? I mock everything, so I can just check what little logic there is in my DAL. I don't want him to do anything, but run my unit test.

Any ideas on how to disable this?


Edit: I tried going to the properties of my test project and disabling the "Enable Visual Studio Hosting Process" on the debug tab. However, this did not solve the problem. (WcfSvcHost is still starting up.)

+3
source share
1 answer

In a WCF project, click properties.

Open the WCF options tab.

Uncheck the Run WCF service node when debugging another project in the same solution box.

+1
source

Source: https://habr.com/ru/post/1724985/


All Articles