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 321707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:52:13+00:00 2026-05-12T08:52:13+00:00

Anybody out there have experience testing out of process assemblies? I’m testing some Com+

  • 0

Anybody out there have experience testing “out of process assemblies”?
I’m testing some Com+ (Serviced Component) and WCF services configured to be activated out of process and I’m not sure what the best practices are for testing in these situations.

What I’ve done is given the public classes their own IOC container that they can build up upon activation. This works fine but I run into problems as soon as I try and unit test for 2 reasons…

  1. Any dependency object I want to inject needs to be serializable because the unit tests are running in a different process. If I want to load an additional module (ninject) into to com+ kernel / ioc container I need to write my own to make it serializable. I don’t feel comfortable making things serializable just to do tests.

  2. Out of process assemblies need to be installed into the GAC, and in the case of Com+ need to be registered. That makes testing a pain since they will need to be installed before they are tested.

I can only think of two ways to approach this at the moment.

  1. Have a separate working copy for running tests where I’ve modified the configuration to run the assemblies in process. Obviously this isn’t ideal because now I’m modifying code just to make it testable. Although I could live with this because it doesn’t involved any functional changes.

  2. Have the unit test inherit from the Com+ or WCF component so the tests can run in the same process boundary. (This would require the unit test to be installed into the GAC)

  • 1 1 Answer
  • 1 View
  • 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-12T08:52:14+00:00Added an answer on May 12, 2026 at 8:52 am

    I would go with your first suggestion: Have a separate working copy for running tests in which the assemblies are run in process.

    Advantages are:

    • Once you have this working on your system it will run on other team member’s machines without any configuration.

    • The tests will run significantly faster because you’re not making interprocess calls.

    I remember when I first started test-driven development. Like you, I was reluctant to change my code just to accomodate the automated tests. I gradually changed my mindset. The libraries need to serve two equally important clients: the production client code and the tests.

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

Sidebar

Ask A Question

Stats

  • Questions 212k
  • Answers 212k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I hate when that happens. I figured it out 3… May 12, 2026 at 10:24 pm
  • Editorial Team
    Editorial Team added an answer I would think that when you serialize B, it preserves… May 12, 2026 at 10:24 pm
  • Editorial Team
    Editorial Team added an answer I think you cannot add a new entry, because you… May 12, 2026 at 10:24 pm

Related Questions

Anybody out there have experience testing out of process assemblies? I'm testing some Com+
I'm testing out my application with the hopes of migrating to SQL Server 2008
Today I was tasked to improve the performance of a classic ASP page. Rewriting
I am using PHP and the codeigniter framework for a project I am working
I have a very strange problem with the Delphi 2006 IDE. If the IDE

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.