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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:48:55+00:00 2026-05-26T22:48:55+00:00

Do I need to register dependencies for ALL my NancyModules when testing just one

  • 0

Do I need to register dependencies for ALL my NancyModules when testing just one route, or is there a way to JUST register dependencies that apply to the module I want to work with?

I’m using the stuff in Nancy.Testing like the Browser class and the ConfigurableBootsrapper for my tests. But for the actual web project, I’m using the StructureMapNancyBootstrapper and register my dependencies via a StructureMap Registry sub-class.

I’m accustomed to unit testing to build out web interfaces where my test only touches one actual layer/class. This style of testing is more like integration testing where my tests are influenced by the entire stack. What I’m looking for is a way to get a little closer to unit testing.

  • 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-26T22:48:55+00:00Added an answer on May 26, 2026 at 10:48 pm

    As long as you only add the one module to the configurable bootstrapper (with.Module) you shouldn’t need to. It resolves all modules at startup (to build the route cache), but “all modules” in that case is only the module you’ve specified – if you’re still letting it discover all the modules then you’ll need to also register the dependencies for them.

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

Sidebar

Related Questions

I have decided that all my WPF pages need to register a routed event.
I need to register an assembly in the GAC using batch file. Is there
A few UIViewControllers in my app that need to register with a provider class
I need to register an user and after that I would like to call
I have 2 scritpts on 2 different folders. One on them need the register
I need to register a file type (e.g. .exex files) when my application is
Need to insert selected text on the page into textarea. There must be some
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
need a quick help here. I have a series of hyperlinks all with the
Aside from registered dependencies, are dependencies that are determined through reflection, such as injected

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.