コード例 #1
0
        private void AddBindings()
        {
            TestServiceModule     testServiceModule     = new TestServiceModule();
            UnitOfWorkModule      unitOfWorkModule      = new UnitOfWorkModule();
            QuestionServiceModule questionServiceModule = new QuestionServiceModule();
            AnswerServiceModule   answerServiceModule   = new AnswerServiceModule();
            ThemeServiceModule    themeServiceModule    = new ThemeServiceModule();
            UserServiceModule     userServiceModule     = new UserServiceModule();
            ResultServiceModule   resultServiceModule   = new ResultServiceModule();

            kernel.Load(unitOfWorkModule, testServiceModule, questionServiceModule,
                        answerServiceModule, themeServiceModule, userServiceModule,
                        resultServiceModule);
        }
コード例 #2
0
        private void AddBindings()
        {
            TestServiceModule     testServiceModule     = new TestServiceModule();
            CommonServiceModule   commonServiceModule   = new CommonServiceModule();
            UnitOfWorkModule      unitOfWorkModule      = new UnitOfWorkModule();
            QuestionServiceModule questionServiceModule = new QuestionServiceModule();
            ThemeServiceModule    themeServiceModule    = new ThemeServiceModule();
            UserServiceModule     userServiceModule     = new UserServiceModule();
            ResultServiceModule   resultServiceModule   = new ResultServiceModule();
            TestPassServiceModule testPassServiceModule = new TestPassServiceModule();

            _kernel.Load(unitOfWorkModule, testServiceModule, questionServiceModule,
                         themeServiceModule, userServiceModule,
                         resultServiceModule, testPassServiceModule, commonServiceModule);
        }