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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:21:04+00:00 2026-05-31T02:21:04+00:00

I seem to be having an issue, the application we’re using uses a Ninject

  • 0

I seem to be having an issue, the application we’re using uses a Ninject kernel, and contains a particular configuration that’s gathered with contents of the WCF call (username, token…).

Based on that a particular configuration the user is assigned rights on the app, this is shielded through a particular instance in the Ninject kernel.

We cannot just recompose the Ninject kernel, what we’d like to do is run a couple of Nunit tests, but run each of them in a separate app domain (recreating the kernel each time with different settings).

I’ve only found ways to run whole test projects in different app domains but not test per test.

Is there a way to solve this?

Unfortunately the Ninject configuration is not on our side, we have to ‘live’ with it this way.

  • 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-31T02:21:06+00:00Added an answer on May 31, 2026 at 2:21 am

    I don’t think there is a way to solve it without re-writing parts of the NUnit code. It has been a while since I’ve been inside the NUnit code, but I am pretty sure the main app domain loading part has not changed.

    NUnit typically uses two app domains. The default one that is created when NUnit is run and a separate one to load the test assemblies and the assemblies they reference. It’s main reason in doing this is to allow the unloading of the test assemblies. You can’t unload a dll, but you can unload an appdomain.

    You might be able to run NUnit once per test and pass the test on the command line, but that’s ugly and I’m not sure it will help.

    It might also be possible to leverage Action Attributes in NUnit 2.6, but you are going to do a lot of work in there to do it.

    You might also be able to create a new app domain in your setup method and call into it in each test. Awkward but possible.

    I’m sorry I don’t have a more complete answer.

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

Sidebar

Related Questions

Seem to be having an issue with std::auto_ptr and assignment, such that the object
I am having an issue that I can't seem to figure out. Hopefully somebody
I am having a strange issue that I can't seem to resolve. Here is
I SEEM to be having an issue with GlobalLock in my application. I say
Hi I seem to be having an issue trying to align an H1 tag
i'm having an issue with creating a query in oracle which doesnt seem to
I'm working on an application that uses the SWT Browser widget to display an
I am currently having a strange issue with an application migrated from rails 2.3.8
I have been having this issue for a while now and I cannot seem
I have been having an issue with Visual Studio 2010 that is driving me

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.