Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8793233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:05:49+00:00 2026-06-13T23:05:49+00:00

I am planning to unit test WCF Services that are exposed as .svc files.

  • 0

I am planning to unit test WCF Services that are exposed as .svc files. What are the best practices available to unit test them.

As for as i know this is the option available:

Create a seperate project and have proxy classes created for the .svc files and add them to the project and do unit testing on those proxy classes.
Proxy classes can be created using:

  1. svcutil.exe
  2. “Add Service Reference” option of visual studio.

are there any other best option available to unit test my wcf .svc file using nunit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:05:49+00:00Added an answer on June 13, 2026 at 11:05 pm

    Basically, you don’t unit test the services. You unit test their code, just as though that code were not in a service.

    Don’t even create an instance of the service class. That’s too big a thing to unit test. You would unit test the code within that class. Remember that unit tests are meant to test the smallest possible units of your code, not the entire service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im planning to create a movie file that might have over 16,000 frames?i know
I have been developing a WCF project that will expose web services (HTTP-based) that
I'm trying to write a unit test for an object that communicates with a
I'm trying to wtire unit tests for a function that looks something like this:
I have installed ruby-prof and test-unit as i am planning to use a ruby
I have an xml formatted document that looks like this: <?xml version=1.0 encoding=windows-1250?> <
I am planning to rewrite a current system that I previously worked on a
This is an academic question (I'm not necessarily planning on doing it) but I
Planning on developing a LAMP web application that allow users to specify their location.
Was planning to use Service Routing (on WCF/REST) to do some common tasks before

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.