Esempio n. 1
0
        public void Setup()
        {
            IKernel kernel = new StandardKernel();

            kernel.Load(Assembly.GetExecutingAssembly());
            PassageService = kernel.Get <IPassageService>();
        }
Esempio n. 2
0
 public StopsController(
     IPassageService passageService,
     IAutocompleteService autocompleteService,
     IStopCacheService stopCacheService)
 {
     this.autocompleteService = autocompleteService;
     this.stopCacheService    = stopCacheService;
     this.passageService      = passageService;
 }
Esempio n. 3
0
 public QuestionService(IQuestionRepository questionRepository,
                        ISubjectService subjectService,
                        IGradeService gradeService,
                        IComplexityService complexityService,
                        IDifficultyService diffficultyService,
                        IPassageService passageService)
 {
     QuestionRepository = questionRepository;
     SubjectService     = subjectService;
     GradeService       = gradeService;
     ComplexityService  = complexityService;
     DifficultyService  = diffficultyService;
     PassageService     = passageService;
 }
Esempio n. 4
0
 public Form1()
 {
     InitializeComponent();
     _stopService    = new StopService();
     _passageService = new PassageService();
 }
Esempio n. 5
0
 public TripsController(IPassageService passageService)
 {
     this.passageService = passageService;
 }