Top "Structuremap" questions

StructureMap is a Dependency Injection / Inversion of Control tool for .NET licensed under Apache 2.

How to Mock an AutoMapper IMapper object in Web API Tests With StructureMap Dependency Injection?

So I've build a WebAPI from scratch, including some best practices that I've found online such as Dependency Injection and …

unit-testing asp.net-web-api moq automapper structuremap
How to replace ObjectFactory usage in StructureMap 3

At present we use StructureMap v2.6 for our dependency injection and our setup is like this: In the Application_Start …

dependency-injection structuremap structuremap3
How to inject AutoMapper IMappingEngine with StructureMap

Most of the examples I've found for Automapper use the static Mapper object for managing type mappings. For my project, …

dependency-injection automapper structuremap
How to dispose resources with dependency injection

I'm using StructureMap to resolve references to my repository class. My repository interface implements IDisposable, e.g. public interface IMyRepository : …

entity-framework dependency-injection structuremap dispose
StructureMap and scanning assemblies

So, I have a .NET solution that uses StructureMap, and I'd like to have StructureMap read an outside assembly that …

assemblies registry structuremap
Circular dependencies in StructureMap - can they be broken with property injection?

I've got the simplest kind of circular dependency in structuremap - class A relies on class B in its constructor, …

c# dependency-injection structuremap circular-dependency
IoC, Dll References, and Assembly Scanning

Although this question is related to StructureMap, my general question is: When wiring up components with an IoC container in …

c# inversion-of-control structuremap
swagger UI is not showing anything in webapi

I followed this up to the xml doc part in order to create Swagger documentation using Swashbuckle. It should allow …

asp.net-web-api2 swagger structuremap swagger-ui swashbuckle
Constructor Dependency Injection WebApi Attributes

I have been looking around for a non Parameter injection option for the WebApi attributes. My question is simply whether …

asp.net-web-api dependency-injection structuremap custom-attributes structuremap3
Mapper not initialized, When Use ProjectTo()

I Use Automapper 5.2.0 In My Project. When I Use ProjectTo() In Code Get This Error: Mapper not initialized. Call Initialize …

c# ioc-container structuremap automapper-5