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

  • Home
  • SEARCH
  • 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 6056535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:23:15+00:00 2026-05-23T08:23:15+00:00

I have 2 WCF services implemented in C# that test a client-server interaction of

  • 0

I have 2 WCF services implemented in C# that test a client-server interaction of a 3-rd party application. Let’s say I have a server-side tester interface for WCF test service (I skipped the attributes ans simplified the interfaces)

interface IServerTester
{
    bool Start();
}

And a client side one:

interface IClientTester
{
    bool Start();
}

The purpose of those methods is merely to start the server and to start the client of the 3-rd party application. I am using NUnit to test it. On the upper level it looks like a C# transaction script, where I first start a server, then a client and lastly verify that they are communicating.

Later, I want to easily add more clients (start more than one), thus I need to add more WCF calls to IClientTester in my transaction script.

I can do something like this, with each client has its own endpoint

//Start server

//start client 1
//start client 2
//...
//start client N

I will need to reuse the code in many other tests.But it seems to be a rather long solution. Is there any better idea, or perhaps a pattern that I can adopt? Many thanks!

  • 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-05-23T08:23:15+00:00Added an answer on May 23, 2026 at 8:23 am

    I’m not sure I completely followed your question, but it sounds to me like a need for Pub/Sub. It sounds like when the server starts, you want 1:M clients to be notified and also start, correct? If so, then the server could publish a message or event that the “clients” all subscribe to. You would not need to modify anything to add new clients, simply subscribe to the message or event in the new client implementation.

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

Sidebar

Related Questions

I have implemented a test Client / Server that implements UserName message authentication over
I have implemented a WCF inspector in my client application that consumes numerous web
I have a WCF service implemented with a call back contract that I am
I have some REST web services implemented in WCF. I wish to make these
I have six wcf services that I'm hosting in a windows service. Everything works
Here is my question I have a WCF service that I implemented using a
I have a WCF solution that consists of the following class libraries: Exercise.Services: Contains
I have a complex .NET Remoting server app that provides a couple of services.
I have multiple WCF services that share some data contracts and need to generate
I've got a client/server setup that I am implementing using a WCF Service (

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.