示例#1
0
        public Engine()
        {
            this.reader = new ConsoleReader();
            this.writer = new ConsoleWriter();

            this.controller = new ChampionshipController();
        }
示例#2
0
 public Engine
     (IChampionshipController championshipController, IReader reader, IWriter writer)
 {
     this.controller = championshipController;
     this.reader     = reader;
     this.writer     = writer;
 }
示例#3
0
 public Engine(IChampionshipController championshipController, IReader reader, IWriter writer)
 {
     this.controller = championshipController;
     this.reader     = reader;
     //this.writer = writer;
     this.writer = new FilerWriter(@"c:\temp\MyTest.txt");
 }
示例#4
0
 public Engine(
     IChampionshipController championshipController,
     IReader dataReader,
     IWriter dataWriter)
 {
     this.championshipController = championshipController;
     this.dataReader             = dataReader;
     this.dataWriter             = dataWriter;
 }
示例#5
0
        public static void Main()
        {
            IChampionshipController controller = null; //new ChampionshipController();
            IReader reader = new ConsoleReader();
            IWriter writer = new ConsoleWriter();

            Engine enigne = new Engine(controller, reader, writer);

            enigne.Run();
        }
示例#6
0
 public TimingApplicationController()
 {
     _kernelWrapper                          = new KernelWrapper();
     _displaySettingsLoader                  = new DisplaySettingsLoader();
     _ratingApplicationController            = _kernelWrapper.Get <IRatingApplicationController>();
     _settingsProvider                       = _kernelWrapper.Get <ISettingsProvider>();
     _simulatorContentController             = _kernelWrapper.Get <ISimulatorContentController>();
     _trackRecordsController                 = _kernelWrapper.Get <ITrackRecordsController>();
     _championshipController                 = _kernelWrapper.Get <IChampionshipController>();
     _sessionEventsController                = _kernelWrapper.Get <ISessionEventsController>();
     _sessionEventProvider                   = _kernelWrapper.Get <ISessionEventProvider>();
     _championshipCurrentEventPointsProvider = _kernelWrapper.Get <IChampionshipCurrentEventPointsProvider>();
 }
示例#7
0
文件: Engine.cs 项目: vesy53/SoftUni
 public Engine()
 {
     this.controller = new ChampionshipController();
 }
示例#8
0
 public Engine(IChampionshipController championshipController)
 {
     this.championshipController = championshipController;
 }
示例#9
0
 public Engine()
 {
     championshipController = new ChampionshipController();
 }
 public Engine(IReader consoleReader, IWriter consoleWriter, IChampionshipController championshipController)
 {
     this.consoleReader          = consoleReader;
     this.consoleWriter          = consoleWriter;
     this.championshipController = championshipController;
 }
示例#11
0
 public Engine(IWriter writer, IReader reader, IChampionshipController controller)
 {
     this.ConsoleReader = reader;
     this.ConsoleWriter = writer;
     this.controller    = controller;
 }
示例#12
0
 public CommandInterpreter(IChampionshipController championshipController)
 {
     this.championshipController = championshipController;
 }