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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:00:09+00:00 2026-05-13T13:00:09+00:00

Just looking for some advice really. I’ve had to write some integration tests to

  • 0

Just looking for some advice really. I’ve had to write some integration tests to test some BL I need to access (later from the web app) and I have configured them to use singleton life-cycle.

I will use in the web application ‘PerWebRequest’. Just really assessing whether or not this is a good thing to do? or if it matters?

  • 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-13T13:00:10+00:00Added an answer on May 13, 2026 at 1:00 pm

    It may matter. It’s difficult to give a definite answer from the information provide, since it’s not entirely clear which parts of the application you are looking to integrate – i.e. if you are not using the web application in your integration test, PerWebRequest makes no sense.

    Although Singleton is the default lifetime style in Windsor, it may be problematic for some components in some scenarios (Entity Framework object contexts in web applications come to mind).

    The Transient lifestyle might be a good alternative if you don’t care too much about performance in your integration test (and even so, you may not feel that big of a difference). However, some components are intended to be long-lived, so it wouldn’t fit all components.

    Try it out and see what works. If you are in doubt, this would be another area where the integration test may bring you more clarity.

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

Sidebar

Related Questions

I'm just looking for some advice really on CMS choice. The website will need
I guess I'm just really looking for some advice on how to approach my
Really quick here... I think I have the answer, but just looking for some
Maybe a browser plugin? Just looking for a dirty, quick way to test some
Just looking for some advice here on a small job I have to do.
I'm just looking for some advice. I'm creating a website that offers (at least)
Just looking for some advice regarding a structure that I am using in some
Just looking for some advice.. I have two websites on IIS7 which are seperate
I have never really used XSLT before and am looking for some advice. I
I'm looking for some advice from the community about constructing an online store based

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.