Stories recently tagged with 'IoC'

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

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

submitted by Sunday_IronfootSunday_Ironfoot(25) 1 year, 6 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: 25

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

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

submitted by grantpalingrantpalin(376) 2 years 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: 676

tags: another

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

submitted by ironkittenironkitten(55) 2 years, 1 month ago

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

add a comment |category: |Views: 12

tags: another

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

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

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

add a comment |category: |Views: 236

tags: another

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

submitted by AndyHitchmanAndyHitchman(25) 2 years, 5 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, 5 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, 6 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: 166

tags: another

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

submitted by alleyalley(2840) 2 years, 9 months 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) 2 years, 10 months 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) 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

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

submitted by mvcguymvcguy(235) 2 years, 10 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) 2 years, 11 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: 27

tags: another

IoC - ‘A Simple Example’ with Castle(hiberlog.wordpress.com)

submitted by mark_Wmark_W(145) 2 years, 11 months ago

A simple, easy to follow example of implementing IoC using Castle Windsor read more...

add a comment |category: |Views: 72

tags: another