DotNetShoutout - Stories tagged with Dependecy Injection
13
Shouts

Introducing Unity.WCF - providing easy IoC integration for your WCF services

published 484 days, 7 hours, 49 minutes ago posted by devtrendsdevtrends 493 days, 9 hours, 34 minutes ago
Friday, January 27, 2012 6:15:02 PM GMT Wednesday, January 18, 2012 4:29:28 PM GMT
There are numerous blog posts available that explain how to hook up Unity with WCF. Unfortunately, many of these are incomplete, too basic or just plain wrong. Additionally, as far as I can tell, nobody has created a NuGet package to get you up and running as quickly as possible. This post introduces Unity.WCF, an open source NuGet package that (hopefully) just works in most situations, deals with cleaning up IDisposable instances and also provides a nice mechanism for automatically adding WCF behaviors ... (more)
category: Web Dev | clicked: 114 | 2 comments | | source: www.devtrends.co.uk
tags: Unity, IoC, Dependecy Injection, WCF
3
Shouts

How to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By Mocking

published 518 days, 5 hours, 37 minutes ago posted by http://tugberk-ugurlu.myopenid.com/http://tugberk-ugurlu.myopenid.com/ 520 days, 6 hours, 36 minutes ago
Saturday, December 24, 2011 8:26:37 PM GMT Thursday, December 22, 2011 7:27:54 PM GMT
In this blog post we will see how to work with generic repositories on ASP.NET MVC and unit testing them by mocking with moq (more)
category: Web Dev | clicked: 25 | 1 comment | | source: tugberkugurlu.com
tags: ASP.NET MVC 3, ASP.NET MVC, Ninject, Mocking, Dependecy Injection, Mock, Moq, Unit Test, ASP.NET
2
Shouts

Needle Container: Fluency and Mapping Types | Damian Schenkelman

posted by dschenkelmandschenkelman 676 days, 23 hours, 56 minutes ago
Tuesday, July 19, 2011 2:07:18 AM GMT
Back in February, I blogged about Needle, a dependency injection container that I was developing. In that post, I listed some of the most relevant features Needle has, one of them being its Fluent API. I thought it would be a would idea to talk about Needle again, but this time sharing some code and ideas behind i... (more)
category: How To | clicked: 0 | comment | | source: blogs.southworks.net
tags: needle, Dependecy Injection
4
Shouts

Configuration Settings Are A Dependency That Should Be Injected

posted by devtrendsdevtrends 769 days, 7 hours, 12 minutes ago
Sunday, April 17, 2011 6:51:08 PM GMT
Dependency Injection does not just apply to obvious dependencies such as repositories and logging components. It is very important to inject ALL dependencies including the less obvious ones. In my experience, one of the most overlooked areas is configuration. Many people seem perfectly happy to extract settings from config deep within their code. This is plain wrong. If you need to reference an AppSetting in your business logic, inject it. If you need a connection string in your data access code, inject ... (more)
category: Web Dev | clicked: 2 | comment | | source: devtrends.co.uk
tags: IoC, Dependecy Injection
2
Shouts

Dependency Injection in ASP.NET MVC3 « It Works On My Machine

posted by http://itworksonmymachine.wordpress.com/http://itworksonmymachine.wordpress.com/ 817 days, 14 hours, 6 minutes ago
Monday, February 28, 2011 11:57:05 AM GMT
What dependency injection means is that instead of writing code like this in your controller private IBlogService _BlogService; public BlogController() { _BlogService = new BlogService(); } you write code like this private IBlogService _BlogService; public BlogController(IBlogService blogService) { _BlogService = blogService; } the benefits of dependency injection are your classes are not tightly coupled, are more testable, and really is pluggable. (more)
category: Web Dev | clicked: 3 | comment | | source: itworksonmymachine.wordpress.com
tags: Unity, Dependecy Injection, MVC 3, ASP.NET 4
4
Shouts

Dependency Injection

published 816 days, 13 hours, 10 minutes ago posted by abhi2434abhi2434 819 days, 2 hours, 43 minutes ago
Tuesday, March 01, 2011 12:53:37 PM GMT Saturday, February 26, 2011 11:20:57 PM GMT
Well, after I introduced Inversion of Control with few simple examples in my previous post, I  thought it would be nice to take this discussion further with more implementation of Dependency Injection Principles. Later I would also take a look at some of the existing frameworks available with MS Patterns and Practices which follow these well known principles. If you remember my previous post on Inversion of control with interfaces, I have clearly stated that we could invert the control to some other modu... (more)
category: Architecture | clicked: 1 | comment | | source: www.abhisheksur.com
tags: Inversion of control, Design Pattern, Dependecy Injection
2
Shouts

Needle Dependency Injection Container – Alpha 0.1 version released

published 825 days, 3 hours, 59 minutes ago posted by dschenkelmandschenkelman 827 days, 2 hours, 51 minutes ago
Sunday, February 20, 2011 10:04:43 PM GMT Friday, February 18, 2011 11:12:05 PM GMT
A couple of days ago I uploaded to NuGet (which was really easy BTW) the first alpha release of the Needle Container. Needle is a lightweight dependency injection container. Initially the project came up as something to do on weekends and boring afternoons with practicing goals (TDD, ... (more)
category: How To | clicked: 0 | comment | | source: blogs.southworks.net
tags: Dependecy Injection
2
Shouts

MMC 3.0 Sample Plug-In using MVP and Unity | Damian Schenkelman

published 859 days, 16 hours, 12 minutes ago posted by dschenkelmandschenkelman 862 days, 12 hours, 27 minutes ago
Monday, January 17, 2011 9:51:42 AM GMT Friday, January 14, 2011 1:36:38 PM GMT
SouthWorks BlogsHomeAboutDamian SchenkelmanMMC 3.0 Sample Plug-In using MVP and Unity Published by Damian Schenkelman on January 13th, 2011 2:49 pm under Guidance, MMC, MVP Pattern, UnityNo Comments The last couple of days I have been working on a MMC spike that leverage dependency injection and some kind of presentation pattern (in this case MVP), to search for ways to make MMC applications more testable. The scenario I chose for the spike was having a plug-in that could connect/disconnect network ada... (more)
category: How To | clicked: 2 | comment | | source: blogs.southworks.net
tags: Dependecy Injection, mmc, MVP
7
Shouts

Experience ASP.NET MVC 3 Beta/RC -the New Dependency Injection Support - Part 1

published 905 days, 12 hours, 21 minutes ago posted by sonukapoorsonukapoor 906 days, 10 hours, 16 minutes ago
Thursday, December 02, 2010 1:42:44 PM GMT Wednesday, December 01, 2010 3:47:46 PM GMT
Starting from this article, let's explore some more advanced concepts and related utilizations associated with flexible Dependency Injection support introduced in ASP.NET MVC 3 Beta. (more)
category: Web Dev | clicked: 2 | comment | | source: dotnetslackers.com
tags: ASP.NET MVC, Ninject, Dependecy Injection
4
Shouts

Using the ControllerActivator in MVC 3

published 950 days, 11 hours, 28 minutes ago posted by gilfgilf 951 days, 16 hours, 3 minutes ago
Monday, October 18, 2010 2:36:01 PM GMT Sunday, October 17, 2010 10:00:55 AM GMT
In the previous post I showed how to use the DependencyResolver in order to bring Dependency Injection behavior to a MVC 3 application. In this post I’ll show you how you can use the ControllerActivator in order to activate controllers using your own behavior. (more)
category: Web Dev | clicked: 3 | comment | | source: blogs.microsoft.co.il
tags: Unity, Dependecy Injection, MVC 3, ASP.NET
4
Shouts

Dependency Injection in MVC 3 Was Made Easier

published 951 days, 11 hours, 19 minutes ago posted by gilfgilf 951 days, 16 hours, 32 minutes ago
Sunday, October 17, 2010 2:44:08 PM GMT Sunday, October 17, 2010 9:31:10 AM GMT
In the past I wrote apost that showed how to implement Dependency Injectionusing Unity in ASP.NET MVC framework. This post revisits that post and shows how you can do the same thing easily in MVC 3. Pay attention that the supplied code is based on MVC 3 beta and may change in the future. (more)
category: Web Dev | clicked: 1 | comment | | source: blogs.microsoft.co.il
tags: Unity, Dependecy Injection, MVC 3, ASP.NET
6
Shouts

Using DI Containers in ASP.NET MVC

published 975 days, 7 hours, 15 minutes ago posted by sonukapoorsonukapoor 977 days, 9 hours, 35 minutes ago
Thursday, September 23, 2010 6:48:59 PM GMT Tuesday, September 21, 2010 4:29:00 PM GMT
How to use Dependency Injection containers in ASP.NET MVC. (more)
category: Web Dev | clicked: 1 | comment | | source: dotnetslackers.com
tags: ASP.NET MVC, Dependecy Injection
4
Shouts

Code Capers | Simple Dependency Injection using a Custom MVC Controller Factory

published 995 days, 4 hours, 32 minutes ago posted by mceranskimceranski 995 days, 22 hours, 26 minutes ago
Friday, September 03, 2010 9:31:22 PM GMT Friday, September 03, 2010 3:37:25 AM GMT
Dependency injection is an important concept to grasp if you plan on doing unit testing. In this article, I demonstrate how a proper constructor signature coupled with a a custom controller factory can make it easy to swap out repository objects for testing purposes. (more)
category: Web Dev | clicked: 1 | comment | | source: www.codecapers.com
tags: TDD, Dependecy Injection, DI, unit testing, MVC
3
Shouts

Tame Your Software Dependencies with Dependency Injection

published 1070 days, 14 hours, 12 minutes ago posted by kitchaiyongkitchaiyong 1071 days, 16 hours, 44 minutes ago
Sunday, June 20, 2010 11:51:48 AM GMT Saturday, June 19, 2010 9:19:49 AM GMT
Tame your software dependencies with the Microsoft Unity Application Block and Common Service Library Locator in your application code. Source codes provided including the unit tests. (more)
category: Architecture | clicked: 2 | 1 comment | | source: www.kitchaiyong.net
tags: Common Service Locator, Microsoft Unity Application Block, Dependecy Injection
7
Shouts

Munq is for web, Unity is for Enterprise

published 1104 days, 11 hours, 53 minutes ago posted by oazabiroazabir 1106 days, 14 hours, 59 minutes ago
Monday, May 17, 2010 2:10:19 PM GMT Saturday, May 15, 2010 11:04:25 AM GMT
The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection. It’s a great library for facilitating Inversion of Control and the recent version supports AOP as well. However, when it comes to performance, it’s CPU hungry. In fact it’s so CPU hungry that it makes it impossible to make ... (more)
category: Web Dev | clicked: 6 | comment | | source: omaralzabir.com
tags: Unity, Munq, Inversion of control, Dependecy Injection, ASP.NET
6
Shouts

Dependency Injection EPiServer CMS with Page Type Builder 1.2

published 1121 days, 15 hours, 5 minutes ago posted by http://webpoet.myopenid.com/http://webpoet.myopenid.com/ 1122 days, 17 hours, 48 minutes ago
Friday, April 30, 2010 10:58:27 AM GMT Thursday, April 29, 2010 8:15:37 AM GMT
The latest release of Page Type Builder for EPiServer CMS brings a couple of interesting changes when it comes to testability and how we can design our applications. You are now able to inject dependencies into instances of your own page type classes using either the IoC container StructureMap or a custom implementation. (more)
category: Web Dev | clicked: 0 | comment | | source: joelabrahamsson.com
tags: EPiServer, Dependecy Injection, EPiServer CMS
3
Shouts

Unit testing and the "constructors do nothing" rule

published 1139 days, 15 hours ago posted by webgiowebgio 1140 days, 15 hours, 21 minutes ago
Monday, April 12, 2010 11:03:51 AM GMT Sunday, April 11, 2010 10:42:39 AM GMT
Writing testable code in C# with Rihno.mocks and Unity dependency injection framework. (more)
category: Agile | clicked: 6 | comment | | source: letsfollowtheyellowbrickroad.blogspot.com
tags: Unity, Rhino Mocks, Mocking, Dependecy Injection, unit testing
5
Shouts

Inversion of Control – An Introduction with Examples in .NET

published 1152 days, 19 hours, 40 minutes ago posted by http://webpoet.myopenid.com/http://webpoet.myopenid.com/ 1153 days, 19 hours, 33 minutes ago
Tuesday, March 30, 2010 6:23:59 AM GMT Monday, March 29, 2010 6:30:40 AM GMT
By using Inversion of Control we are able to build more flexible and well designed applications. In this simple introduction I quickly describe, using examples in C#, what IoC is and how we can implement it using either Dependency Injection or Service Locator. (more)
category: Architecture | clicked: 4 | 2 comments | | source: joelabrahamsson.com
tags: IoC, .NET, Inversion of control, Dependecy Injection, DI, Architecture, Service Locator
7
Shouts

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

posted by ironkittenironkitten 1234 days, 20 hours, 40 minutes ago
Thursday, January 07, 2010 5:24:00 AM GMT
A simple introduction to dependency injection in asp.net MVC (more)
category: Web Dev | clicked: 1 | comment | | source: suhair.in
tags: ASP.NET MVC, Dependecy Injection, StructureMap
4
Shouts

Dive Deep Into MVC - IControllerFactory

posted by mgolchinmgolchin 1236 days, 6 hours, 31 minutes ago
Tuesday, January 05, 2010 7:32:26 PM GMT
In this article, you can see how we can create an ASP.NET MVC ControllerFactory which supports dependency injection. (more)
category: Web Dev | clicked: 1 | comment | | source: mgolchin.net
tags: ASP.NET MVC, C#, Dependecy Injection
Previous 1 2 Next