예제 #1
0
 /// <summary>
 /// Load your modules or register your services here!
 /// </summary>
 /// <param name="kernel">The kernel.</param>
 private static void RegisterServices(IKernel kernel)
 {
     kernel.Bind <IPermissionChecker>().To <UserRepository>();
     kernel.Bind <IUserRepository>().To <UserRepository>();
     kernel.Bind <IItemRepository>().To <ItemRepository>();
     kernel.Bind <IGridRepository>().To <GridRepository>();
     kernel.Bind <INoteRepository>().To <NoteRepository>();
     kernel.Bind <IArticleRepository>().ToConstant(FakeFactory.GetArticleRepository());
 }