DotNetShoutout - Stories tagged with Ninject
2
Shouts

Testing DI bootstrappers

published 471 days, 19 hours, 54 minutes ago posted by http://jclaes.blogspot.com/http://jclaes.blogspot.com/ 472 days, 6 hours, 9 minutes ago
Monday, February 06, 2012 6:22:29 PM GMT Monday, February 06, 2012 8:08:20 AM GMT
While your Dependency Injection bootstrappers - being responsible for gluing your application together - are a vital part of your application, they are seldom put under test. I don't see any reason why they shouldn't be though. The cost of these tests is negligible, definitely if you compare it to the cost of the often catastrophical outcome of bugs in your bootstrappers. (more)
category: Web Dev | clicked: 25 | comment | | source: jclaes.blogspot.com
tags: ASP.NET MVC, Ninject, Unit Test, unit testing
3
Shouts

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

published 515 days, 17 hours, 50 minutes ago posted by http://tugberk-ugurlu.myopenid.com/http://tugberk-ugurlu.myopenid.com/ 517 days, 18 hours, 49 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

Ninjecting MVC3

posted by http://jclaes.blogspot.com/http://jclaes.blogspot.com/ 598 days, 18 hours, 21 minutes ago
Sunday, October 02, 2011 7:55:42 PM GMT
Dabbling with a new MVC3 side-project, I chose Ninject to handle dependency injection. The creative project name might have something to do with that decision. So far, I am really impressed. Setting up Ninject is a breeze, and the framework does a really good job of not getting in your way. In this post, I will walk you through a simple MVC3 project using Ninject. (more)
category: Web Dev | clicked: 9 | comment | | source: jclaes.blogspot.com
tags: Ninject, MVC 3, dependency injection
5
Shouts

Zen and the Art of Dependency Injection in MVC

published 661 days, 18 hours, 25 minutes ago posted by tduponttdupont 663 days, 23 hours, 26 minutes ago
Sunday, July 31, 2011 7:52:05 PM GMT Friday, July 29, 2011 2:50:51 PM GMT
Right out of the box the MVC model binders are already injecting models straight into your controllers, so why not take it one more step forward and inject your services too? If you are not already doing TDD with Dependency Injection, then it is time to start. On the plus side, thanks to tools like NuGet, it has never been easier to get started with all of these new fun techniques! (more)
category: Web Dev | clicked: 39 | comment | | source: community.codesmithtools.com
tags: TDD, Ninject, dependency injection, MVC, NuGet
7
Shouts

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

published 903 days, 34 minutes ago posted by sonukapoorsonukapoor 903 days, 22 hours, 29 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
8
Shouts

Building a MVC2 Template, Part 19, Finishing NHibernate | erictopia.com

published 940 days, 13 hours, 48 minutes ago posted by http://37stars.wordpress.com/http://37stars.wordpress.com/ 940 days, 23 hours, 53 minutes ago
Tuesday, October 26, 2010 12:29:03 AM GMT Monday, October 25, 2010 2:24:00 PM GMT
This post will be fairly short. It will also tie together the two previous posts into our solution. If I haven’t left anything out, by the end of this article your solution will compile without errors and all the specifications will pass testing. We’ll start by creating the tables to hold our data. In part 18 we created the mappi... (more)
category: Web Dev | clicked: 0 | comment | | source: erictopia.com
tags: role provider, Ninject, Membership Provider, ASP.NET MVC 2, NHibernate
7
Shouts

Building a MVC2 Template, Part 18, Adding NHibernate | erictopia.com

published 942 days, 16 hours, 49 minutes ago posted by http://37stars.wordpress.com/http://37stars.wordpress.com/ 945 days, 1 hour, 20 minutes ago
Saturday, October 23, 2010 9:27:43 PM GMT Thursday, October 21, 2010 12:56:41 PM GMT
Here is the long awaited post that deals directly with adding NHibernate to our MVC2 template project. This post will present the code that gives our providers (Membership, Role, and Profile) access to the database. This implementation of the IProviderRepository interface will use NHibernate. (more)
category: Web Dev | clicked: 2 | comment | | source: erictopia.com
tags: role provider, Ninject, Membership Provider, NHibernate, profile provider, ASP.NET
4
Shouts

Building a MVC2 Template, Part 17, Adding Provider Repository Specifications | erictopia.com

published 944 days, 12 hours, 53 minutes ago posted by http://37stars.wordpress.com/http://37stars.wordpress.com/ 945 days, 1 hour, 22 minutes ago
Friday, October 22, 2010 1:23:36 AM GMT Thursday, October 21, 2010 12:54:41 PM GMT
In the next three series of posts we will be adding NHibernate, Fluent NHibernate, and NHibernate.Linq to our template. This specific installment on building a MVC2 template we will update the Nehemiah.Specs project. This project contains all of the specifications for the template. We’ll add the specifications for the provider repository. The provider repository is the data layer that supports our membership, role, and profile providers. The specifications are not unique to any data layer implementation.... (more)
category: Web Dev | clicked: 2 | comment | | source: erictopia.com
tags: role provider, Ninject, Membership Provider, NHibernate, profile provider, ASP.NET
6
Shouts

Unity, Castle Windsor, StructureMap, Ninject – who has best performance?

published 972 days, 19 hours, 28 minutes ago posted by gpeipmangpeipman 974 days, 18 hours, 39 minutes ago
Thursday, September 23, 2010 6:48:59 PM GMT Tuesday, September 21, 2010 7:38:06 PM GMT
I made quick comparison of performance of four DI/IoC containers. I measured Unity, Castle Windsor, StructureMap and Ninject in two scenarios – resolving objects with empty constructor and resolving object with injected parameters in its constructor. Results are here. (more)
category: How To | clicked: 24 | comment | | source: weblogs.asp.net
tags: Unity, DI/IoC, Performance, Ninject, StructureMap, Castle Windsor
5
Shouts

Inversion of control (IOC containers) .NET IOC patterns

posted by http://agafonovslava.blogspot.com/http://agafonovslava.blogspot.com/ 979 days, 2 hours, 48 minutes ago
Friday, September 17, 2010 11:29:05 AM GMT
IoC is not a new concept, however. It has been around for several years now. Using object-oriented design principles and features such as interface, inheritance, and polymorphism, the IoC pattern enables better software design that facilitates reuse, loose coupling, and easy testing of software components. This article discusses IoC and demonstrates how to use this pattern in your software design without having to implement any of the open source frameworks. (more)
category: Architecture | clicked: 24 | comment | | source: blog.agafonov.net.ua
tags: Unity, IoC, S2Container.NET, Spring.NET, LinFu, Ninject, tinyioc, Hiro, Autofac, LightCore, Puzzle.NET, StructureMap, Castle Windsor, PicoContainer.NET
3
Shouts

The Right Way to Do Automocking with Ninject

posted by Matt_TCFMatt_TCF 984 days, 12 hours ago
Sunday, September 12, 2010 2:16:41 AM GMT
While StructureMap is definitely my IoC container of choice, it’s not the only game in town. At my new job, our existing project uses Ninject. One of my first tasks at this new job was integrating my SpecsFor “framework” into the existing projects. The original version of SpecsFor worked with StructureMap and leveraged its auto-mocking container. While Ninject has an auto-mocking extension, ninject.moq, it is sorely lacking when compared to StructureMap’s offering. In this post, I’ll show you how t... (more)
category: How To | clicked: 0 | comment | | source: trycatchfail.com
tags: automocking, Ninject, Testing, Moq
3
Shouts

Dependency Injection with Ninject, Moq and Unit Testing

published 1002 days, 1 hour, 29 minutes ago posted by http://morder.myopenid.com/http://morder.myopenid.com/ 1003 days, 3 minutes ago
Wednesday, August 25, 2010 12:47:59 PM GMT Tuesday, August 24, 2010 2:13:42 PM GMT
Decoupling a controller from it's database dependency using Ninject with a unit test example using Moq (more)
category: Architecture | clicked: 5 | comment | | source: buildstarted.com
tags: C#, Ninject, Moq, dependency injection
5
Shouts

Building a MVC2 Template, Part 15, Adding Ninject | erictopia.com

published 1073 days, 27 minutes ago posted by http://37stars.wordpress.com/http://37stars.wordpress.com/ 1073 days, 20 hours, 3 minutes ago
Tuesday, June 15, 2010 1:49:55 PM GMT Monday, June 14, 2010 6:14:23 PM GMT
Our last post saw the creation of two logging services utilizing NLog and Log4Net. In this post we’ll add Ninject to our template and use it to inject the logging service of our choosing. Let’s not kid ourselves.  Most of the development work on an application is done after deployment. No matter how well written the original application is, someone will be replacing part of... (more)
category: Web Dev | clicked: 2 | comment | | source: erictopia.com
tags: Ninject, ASP.NET MVC 2, NLog, Log4net
8
Shouts

MvcExtensions – Custom Service Registration - Kazi Manzur Rashid's Blog

published 1099 days, 2 hours, 41 minutes ago posted by mithumithu 1100 days, 20 hours, 3 minutes ago
Thursday, May 20, 2010 11:35:34 AM GMT Tuesday, May 18, 2010 6:13:46 PM GMT
In this post, I will show you how you can register your custom services in your preferred IoC container and how the MvcExtensions will integrate it with the rest of the application. One of the goal of MvcExtensions is, unlike the ot... (more)
category: Web Dev | clicked: 5 | comment | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC, IoC/DI, ASPNETMVC, Ninject, Windsor, Open Source, Autofac, MVC, MVCExtensions, StructureMap, ASP.NET
4
Shouts

Dependency Injection in ASP.NET MVC NerdDinner App using Ninject - Shiju Varghese's Blog

published 1118 days, 6 hours, 44 minutes ago posted by http://shijucv.myopenid.com/http://shijucv.myopenid.com/ 1119 days, 5 hours, 11 minutes ago
Saturday, May 01, 2010 7:32:38 AM GMT Friday, April 30, 2010 9:05:40 AM GMT
In this post, I am applying Dependency Injection to the NerdDinner application using Ninject. The controllers of NerdDinner application have Dependency Injection enabled constructors. So we can apply Dependency Injection through constructor without change any existing code. A Dependency Injection framework injects the dependencies into a class when the dependencies are needed. Dependency Injection enables looser coupling between classes and their dependencies and provides better testability of an applica... (more)
category: Web Dev | clicked: 2 | 1 comment | | source: weblogs.asp.net
tags: ASP.NET MVC, IoC, Ninject, ASP.NET MVC 2, Ninject 2
6
Shouts

Ninject and ASP.NET MVC – Alternative Method

posted by poweredbyaltnetpoweredbyaltnet 1256 days, 6 hours, 43 minutes ago
Monday, December 14, 2009 7:33:41 AM GMT
An alternative method to using Ninject with ASP.NET MVC that does not require modifying the HttpApplication class. (more)
category: Architecture | clicked: 2 | comment | | source: poweredbyalt.net
tags: Ninject, dependency injection
13
Shouts

Meet my new ASP.NET MVC Extension - System.Web.Mvc.Extensibility - Kazi Manzur Rashid

published 1254 days, 2 hours, 33 minutes ago posted by mithumithu 1256 days, 7 hours, 16 minutes ago
Wednesday, December 16, 2009 11:43:56 AM GMT Monday, December 14, 2009 7:00:56 AM GMT
After hearing Phil Haack and Scott Hanselman in their latest podcast and PDC session I decided to give a good look at the MvcTrubine project in this weekend. I totally agree the intend of this project, let your favorite IoC to rule everywhere, but I do not think it has been implemented in the correct way. There are three important design flaws that I found in MvcTurbine: Generic Component Registration API Rather than allowing you to use your preferred IoC registration features, it prefers to use its own... (more)
category: Web Dev | clicked: 1 | comment | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC, IoC/DI, ASPNETMVC, Ninject, Windsor, Open Source, Autofac, MVC, StructureMap, ASP.NET
4
Shouts

Contextual Binding in Ninject

posted by poweredbyaltnetpoweredbyaltnet 1256 days, 15 hours, 45 minutes ago
Sunday, December 13, 2009 10:31:38 PM GMT
Using contextual binding with dependency injection to increase the flexibility of applications. (more)
category: Architecture | clicked: 1 | comment | | source: poweredbyalt.net
tags: Ninject, Dependecy Injection
9
Shouts

Dependency Injection with Ninject

published 1260 days, 20 hours, 35 minutes ago posted by poweredbyaltnetpoweredbyaltnet 1262 days, 11 hours, 22 minutes ago
Wednesday, December 09, 2009 5:41:50 PM GMT Tuesday, December 08, 2009 2:55:14 AM GMT
Basic dependency injection with Ninject (more)
category: Architecture | clicked: 2 | comment | | source: poweredbyalt.net
tags: Ninject, dependency injection