Stories recently tagged with 'IoC'

IoC & Convention over Configuration in an Agile world(www.infoq.com)

submitted by wladekwladek(38) 7 days, 3 hours ago

James Kovacs (http://www.jameskovacs.com) is highly regarded figure in the .NET consulting community. The video linked in this kick is a great talk on how to simplify your codebase using Convention over Configuration with your IoC container. It also briefly touches on some other topics like testing, app bootstrap/initialization, and lots of details regarding the Castle container itself. To download the FakeVader application he uses in his talk check it out on github: https://github.com/JamesKovacs/fakevader read more...

add a comment |category: |Views: 199

tags: another

Ninject Mini Tutorial - Part 1(stefanoricciardi.com)

submitted by stefanoricstefanoric(340) 1 year, 4 months ago

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

add a comment |category: |Views: 119

tags: another

Put an IOC Powered Bootstrapper in your ASP.NET MVC Application(www.dominicpettifer.co.uk)

submitted by Sunday_IronfootSunday_Ironfoot(25) 1 year, 10 months ago

Do you have a fat Global.asax file in your ASP.NET MVC application? Does it contain 1000’s of lines of application start-up code? Want to break it out into separate classes and gain the benefits of decoupling, dependency injection and unit testability? Read on. read more...

add a comment |category: |Views: 27

tags: another

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

submitted by xunilrjxunilrj(74) 2 years, 2 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: 174

tags: another

Reducing Code Coupling - Inversion of Control(grantpalin.com)

submitted by grantpalingrantpalin(376) 2 years, 4 months ago

This is the conclusion to my series on reducing code coupling. This installment follows from the previous ones, building on them by introducing the Inversion of Control pattern. read more...

2 comments |category: |Views: 677

tags: another

Castle Windsor 2.1, Dynamic Proxy 2.2 and more released!(kozmic.pl)

submitted by powerrushpowerrush(3873) 2 years, 4 months ago

New Castle Project releases read more...

add a comment |category: |Views: 10

tags: another

Dependency Injection in Asp.net MVC using MVC Contrib - on code(suhair.in)

submitted by ironkittenironkitten(55) 2 years, 4 months ago

A simple introduction to dependency injection in asp.net MVC read more...

add a comment |category: |Views: 13

tags: another

Getting Started With NServiceBus: Part 4 Integrating With StructureMap(blogs.planbsoftware.co.nz)

submitted by sjclark76sjclark76(155) 2 years, 6 months ago

A simple walkthrough on how to StructureMap & NServiceBus. read more...

add a comment |category: |Views: 248

tags: another

StructureMap and Scanning With Custom Conventions(andyhitchman.wordpress.com)

submitted by AndyHitchmanAndyHitchman(25) 2 years, 9 months ago

How I am using convention over configuration with StructureMap on my new project read more...

add a comment |category: |Views: 17

tags: another

Exploring StructureMap: Learning how to setup profiles(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 9 months ago

Taking a look at how to setup profiles to allow the container to dynamicly determine which objects to inject read more...

add a comment |category: |Views: 208

tags: another

Exploring StructureMap: Learning how to setup Auto Registration(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 10 months ago

Looking at the simple use case and how to setup for Auto Registration. Auto Registration is where StructureMap can map your types for you, assuming you follow the standard convention where Foo implementes IFoo. read more...

add a comment |category: |Views: 167

tags: another

Making Unity work more like the others(chrisvandesteeg.nl)

submitted by alleyalley(2840) 3 years, 1 month ago

I love MS Unity as an IoC container, it has some great features. Though I found it to function incorrectly at two points (it’s not that the path chosen by the Unity team is incorrect, I just want/excpect it to act differently). The first thing that bothered me was the fact that Unity throws an exception when Resolve<T> is not able to resolve the given type: I’d prefer it to return null instead, hence most containers do that. The second, even more irritating point, was that ResolveAll<T> only returned the named instances/types instead of all registered types read more...

1 comment |category: |Views: 188

tags: another

Dependency injection in real world(blog.vuscode.com)

submitted by schalkvanwykschalkvanwyk(1335) 3 years, 1 month ago

Most of the blog posts I’ve seen present an ideal “perfect day” situation setup for writing the test which is not always the case in real world. In this kind of “not-so-perfect” situations, service locator based solution I’ve presented in that blog post allowed me to increase testability and introduce TDD into existing code bases and environments not so much interested in the TDD. read more...

add a comment |category: |Views: 25

tags: another

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

submitted by schalkvanwykschalkvanwyk(1335) 3 years, 2 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: 27

tags: another

Dependency Injection in ASP.NET MVC NerdDinner.com Application(weblogs.asp.net)

submitted by mvcguymvcguy(265) 3 years, 2 months ago

Demonstrating how to apply Dependency Injection in the ASP.NET MVC NerdDinner.com application using Microsoft Unity Application Block. read more...

add a comment |category: |Views: 70

tags: another

TDD in SharePoint - Introduction to common vocabulary(21apps.com)

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

This post is part of a series on Test Driven Development - Using Dependency Injection. There are a number of terms that you are likely to hear very early on in your journey to Test Driven Development, these terms generally refer to specific patterns of coding that have developed to support particular problems. You should be familiar with terms like Singleton and Factory which are used as a common vocabulary and help developers to communicate their design. In order to complete the refactoring of our project we will introduce some new terms Loosely Coupled, Dependency Inversion, Dependency Injection and Inversion of Control to help us describe the changes and the reasoning behind them. read more...

add a comment |category: |Views: 28

tags: another