Stories recently tagged with 'DI'

Ninject Mini Tutorial - Part 1(stefanoricciardi.com)

submitted by stefanoricstefanoric(340) 1 year ago

A mini tutorial to Ninject, a .NET IoC container. read more...

add a comment |category: |Views: 113

tags: another

Automatic Factories With Unity 2.0(www.machinaaurum.com.br)

submitted by xunilrjxunilrj(70) 1 year, 11 months ago

Unity 2.0 comes with new features. But the feature i want to talk about is "Automatic Factory". This feature is useful when one class has a dependency in another but may not need to have the instance of dependency in the constructor. Or, just want to create the dependency in another time. read more...

add a comment |category: |Views: 164

tags: another

Unit testing WCF services through dependency injection(toomuchcode.com)

submitted by JemmJemm(9604) 2 years, 8 months ago

"When building a WCF service in an enterprise application, this service frequently depends on other services or resources. When creating unit tests for this service, we don’t want to host all these other services over WCF endpoints. Instead we will most likely want to inject mock objects. In some case we may even want to inject some in-process instances of these other services." read more...

add a comment |category: |Views: 208

tags: another

TDD Design Starter Kit - Dependency Inversion Principle (codebetter.com)

submitted by schalkvanwykschalkvanwyk(1335) 2 years, 10 months ago

In the last episode of the TDD Design Starter Kit, I talked about the need to build cohesive classes, and make the relationships between classes loosely coupled. The specific benefit for TDD is to truly isolate the functionality of a class under the microscope of a unit test. But we've done all we can to isolate our classes, and we still have some interaction with dependencies. read more...

add a comment |category: |Views: 26

tags: another

Structuremap 2.5.3 released.(codebetter.com)

submitted by sharplifesharplife(4560) 3 years ago

A refresh to popular DI framework. read more...

add a comment |category: |Views: 24

tags: another

StructureMap 2.5.1 Released(codebetter.com)

submitted by sharplifesharplife(4560) 3 years, 1 month ago

Jeremy D. Miller, the author of Structuremap, has recently released a incremental release of this popular DI framework. He has listed new features and bug fixes as well as future plans for SM. read more...

add a comment |category: |Views: 13

tags: another

Common IoC denominator for Autofac, Castle and Unity .NET Containers(rabdullin.com)

submitted by abdullinabdullin(385) 3 years, 3 months ago

What’s the common denominator for the Autofac, Castle, Unity and other popular .NET containers? Some think, that it is the CommonServiceLocator - an interface that will allow library developers to abstract from the specific Container or Service Locator implementation. read more...

add a comment |category: |Views: 122

tags: another

BFG: DSL configuration syntax for Autofac IoC Container(rabdullin.com)

submitted by abdullinabdullin(385) 3 years, 4 months ago

This might be interesting for people that use popular IoC container for .NET - Autofac. Now it is possible to configure this container with the custom DSL syntax that is more flexible and efficient than plain XML configuration. read more...

add a comment |category: |Views: 44

tags: another

Building A Fluent Interface for MEF(managed-world.com)

submitted by adminjewadminjew(1490) 3 years, 7 months ago

Lately I've been digging more and more into the first CTP of the Managed Extensibility Framework (MEF) coming out of Krzysztof Cwalina's team here at Microsoft. By default, a developer needs to sprinkle Export and Import attributes in their classes at the point they are needing something to be injected, or on classes that need to be exported in order to be injected into other classes. However, if you don't like this behavior, MEF provides several extension points you can use to provide a different interface into MEF. read more...

add a comment |category: |Views: 71

tags: another

Circumventing statics and singletons(hammett.castleproject.org)

submitted by simonebsimoneb(5450) 4 years, 2 months ago

A useful dependency injection pattern to make singletons and static members somewhat testable and decouple implementations. read more...

add a comment |category: |Views: 5

tags: another

Dependency Injection from the Trenches(panteravb.com)

submitted by chrcar01chrcar01(560) 4 years, 5 months ago

Example of how to incorporate dependency injection to make code that depends on external resources testable. read more...

add a comment |category: |Views: 11

tags: another