public override void Load() { Kernel.Bind <IExceptionLogger>().To <ElmahExceptionLogger>(); Kernel.Bind <IUserIdentityProvider>().To <ClaimsPrincipalUserIdentityProvider>(); Kernel.Bind <IObjectMapper>().ToConstant(new AutoMapperObjectMapper()); ServiceLocatorConfig.Configure(Kernel); }
protected ServiceIntegrationTestBase() { ServiceLocatorConfig.Configure(Kernel); Kernel.Bind <IExceptionLogger>().ToConstant(new Mock <IExceptionLogger>().Object); }