Пример #1
0
        public ScoreServiceTest()
        {
            var kernel = NinjectRegistrator.GetKernel("test");

            _scoresService = kernel.Get <IScoresService>();
            _userService   = kernel.Get <IUserService>();
        }
Пример #2
0
        static BasePresenter()
        {
            var kernel = NinjectRegistrator.GetKernel();

            UserService   = kernel.Get <IUserService>();
            ScoresService = kernel.Get <IScoresService>();
        }
Пример #3
0
        public UserServiceTest()
        {
            var kernel = NinjectRegistrator.GetKernel("test");

            _service = kernel.Get <IUserService>();
        }
Пример #4
0
        public UserRepositoryTest()
        {
            var kernel = NinjectRegistrator.GetKernel("test");

            _repository = kernel.Get <IUserRepository>();
        }
Пример #5
0
 public ScoresService(string databaseName = "database")
 {
     _repository = NinjectRegistrator.GetKernel(databaseName).Get <IUserRepository>();
 }