コード例 #1
0
        public override void Load()
        {
            Kernel.Bind <IExceptionLogger>().To <ElmahExceptionLogger>();
            Kernel.Bind <IUserIdentityProvider>().To <ClaimsPrincipalUserIdentityProvider>();
            Kernel.Bind <IObjectMapper>().ToConstant(new AutoMapperObjectMapper());

            ServiceLocatorConfig.Configure(Kernel);
        }
コード例 #2
0
 protected ServiceIntegrationTestBase()
 {
     ServiceLocatorConfig.Configure(Kernel);
     Kernel.Bind <IExceptionLogger>().ToConstant(new Mock <IExceptionLogger>().Object);
 }