开发者

Unit Testing DAL - Stop Connecting when running unit tests

I am unit testing a DAL (Data Access Layer).

When I debug a unit test, before my unit test constructor is even run, Visual Studio fires up WcfSvcHost.

Why is it doing that? I am mocking out everything so I can just test what little logic there is in my DAL. I don't want it to do anything but run my unit test.

Any ideas on how to turn that off?


Edit: I tried 开发者_开发问答going to the Properties of my Test Project and turning off "Enable the Visual Studio Hosting process" in the debug tab. However, this did not fix the issue. (WcfSvcHost still starts up.)


On the WCF project, click properties.

Goto WCF options tab.

Uncheck Start WCF Service Host when debugging another project in the same solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜