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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:45:48+00:00 2026-06-10T08:45:48+00:00

I have started work on a project which uses Spring.Net, and i’m coming at

  • 0

I have started work on a project which uses Spring.Net, and i’m coming at it from a Unity background. I’m trying to set up an integration test for part of the solution, and need to setup Spring to build all my classes on demand. I don’t want to use configuration files.

I want to do the following:

  • Register My Types

  • Configure the root instance

  • Have all types populated when I pull them from the container

I’ve populated my types (Including mocks) in the container, and configured my root instance, but no types get populated. There don’t appear to be any attributes to specify what I want, and type mappings are done by string names.

I was looking at building up a MutablePropertyValues collection, but they only seem to take instances of the class I want to populate, rather than a reference, which breaks lazy loading. Is there a reference type class I can use?

Appologies if this is a bit vague, but I know what I want to achieve, and am unsure as to what the best way to achieve it would be.

  • 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-06-10T08:45:50+00:00Added an answer on June 10, 2026 at 8:45 am

    For configuring Spring .NET using code you can use the CodeConfig project-
    http://www.springframework.net/codeconfig/index.html

    How do you run your tests?
    You can inherit from AbstractDependencyInjectionSpringContextTests and your classes will be loaded from the container.
    More info here – http://www.springframework.net/doc-latest/reference/html/testing.html

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

Sidebar

Related Questions

I have recently started work on a large project in .net (C#) and I
I have started to work on maven project recently. The piece of code I
I have just started work on asmall program that sends text over net (TON)
So I have a project comprised of multiple modules and I'm trying to work
I have been working on a project which is about data copy from one
I have an ASP.NET project that uses XML Serialization for the main operation for
I have just started my project but have run into problems which is preventing
I have recently started working on some open source project which I found relevant
I have recently started using CAML.NET IntelliSense for SharePoint with Visual Studio 2008; which
I've recently started work on a new project using EpiServer which I am totally

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.