Multiple choice technology testing

How can you use wcf service in test project?

  1. By Add Reference

  2. By Add Service Reference

  3. By Add service as existing item

  4. By add service as existing project

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To use a WCF service in a test project, you use the "Add Service Reference" option which generates proxy classes and configuration for consuming the service. Add Reference is for .NET assemblies, Add Service as Existing Item adds files to the project, and Add Service as Existing Project adds entire projects - only Add Service Reference properly sets up WCF service connectivity with the necessary proxy generation and configuration.