public void Setup() { IKernel kernel = new StandardKernel(); kernel.Load(Assembly.GetExecutingAssembly()); PassageService = kernel.Get <IPassageService>(); }
public StopsController( IPassageService passageService, IAutocompleteService autocompleteService, IStopCacheService stopCacheService) { this.autocompleteService = autocompleteService; this.stopCacheService = stopCacheService; this.passageService = passageService; }
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; }
public Form1() { InitializeComponent(); _stopService = new StopService(); _passageService = new PassageService(); }
public TripsController(IPassageService passageService) { this.passageService = passageService; }