Permalink
Browse files

Changed NancyModule to INancyModule

  • Loading branch information...
1 parent 81206b6 commit 41cb88f3c366a8f96d067b2a2c7d8a98c084421f @grumpydev grumpydev committed Feb 13, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Nancy.Bootstrappers.Ninject/NinjectNancyBootstrapper.cs
@@ -115,7 +115,7 @@ protected override sealed void RegisterRequestContainerModules(IKernel container
{
foreach (var moduleRegistrationType in moduleRegistrationTypes)
{
- container.Bind(typeof (NancyModule)).To(moduleRegistrationType.ModuleType).InSingletonScope().Named(moduleRegistrationType.ModuleKey);
+ container.Bind(typeof (INancyModule)).To(moduleRegistrationType.ModuleType).InSingletonScope().Named(moduleRegistrationType.ModuleKey);
}
}
@@ -146,9 +146,9 @@ protected override sealed IKernel CreateRequestContainer()
/// </summary>
/// <param name="container">Container to use</param>
/// <returns>Collection of NancyModule instances</returns>
- protected override sealed IEnumerable<NancyModule> GetAllModules(IKernel container)
+ protected override sealed IEnumerable<INancyModule> GetAllModules(IKernel container)
{
- return container.GetAll<NancyModule>();
+ return container.GetAll<INancyModule>();
}
/// <summary>
@@ -157,9 +157,9 @@ protected override sealed IEnumerable<NancyModule> GetAllModules(IKernel contain
/// <param name="container">Container to use</param>
/// <param name="moduleKey">Module key of the module</param>
/// <returns>NancyModule instance</returns>
- protected override sealed NancyModule GetModuleByKey(IKernel container, string moduleKey)
+ protected override sealed INancyModule GetModuleByKey(IKernel container, string moduleKey)
{
- return container.Get<NancyModule>(moduleKey);
+ return container.Get<INancyModule>(moduleKey);
}
}
}

0 comments on commit 41cb88f

Please sign in to comment.