示例#1
0

        
示例#2
0

        
 public Engine(IFestivalController festivalController, ISetController setController)
 {
     this.festivalCоntroller = festivalController;
     this.setCоntroller      = setController;
     this.reader             = new ConsoleReader();
     this.writer             = new ConsoleWriter();
 }
 public Engine()
 {
     this.stage = new Stage();
     this.festivalCоntroller = new FestivalController(stage);
     this.setCоntroller      = new SetController(stage);
     this.writer             = new ConsoleWriter();
     this.reader             = new ConsoleReader();
 }
 public Engine(IReader reader, IWriter writer)
 {
     this.writer             = writer;
     this.reader             = reader;
     this.stage              = new Stage();
     this.festivalCоntroller = new FestivalController(stage);
     this.setCоntroller      = new SetController(stage);
 }
 public Engine(IWriter writer, IReader reader, FestivalController festivalController)
 {
     this.reader        = new ConsoleReader();
     this.writer        = new ConsoleWriter();
     this.stage         = new Stage();
     this.setController = new SetController(stage);
     festivalController = new FestivalController(stage);
 }
示例#8
0

        
示例#9
0

        
示例#10
0
        public Engine(IFestivalController festivalController, ISetController setController, IReader reader, IWriter writer, IStage stage)
        {
            this.reader = reader;
            this.writer = writer;
            this.stage  = stage;

            this.festivalController = festivalController;
            this.setController      = setController;
        }
示例#11
0
        public Engine(IFestivalController fc, ISetController sc)
        {
            this.reader = new ConsoleReader();
            this.writer = new ConsoleWriter();

            this.stage = new Stage();
            this.festivalCоntroller = fc;
            this.setCоntroller      = sc;
        }
示例#12
0
        public Engine(IReader reader, IWriter writer, IFestivalController festivalController,
                      ISetController setController, ICommandFactory commandFactory)
        {
            this.isRunning = false;

            this.reader             = reader;
            this.writer             = writer;
            this.festivalCоntroller = festivalController;
            this.setCоntroller      = setController;
            this.commandFactory     = commandFactory;
        }
示例#13
0
        public static void Main(string[] args)
        {
            var    serviseProvider = ConfigureServices();
            IStage stage           = serviseProvider.GetService <IStage>();
            IFestivalController festivalController = serviseProvider.GetService <IFestivalController>();
            ISetController      setController      = serviseProvider.GetService <ISetController>();

            IWriter writer = serviseProvider.GetService <IWriter>();
            IReader reader = serviseProvider.GetService <IReader>();

            var engine = new Engine(reader, writer, festivalController, setController, serviseProvider);

            engine.Run();
        }
示例#14
0

        
 public ENDCommand(IFestivalController festivalController)
 {
     this.festivalController = festivalController;
 }
示例#16
0
 public AddSongToSetCommand(IFestivalController festivalController)
 {
     this.festivalController = festivalController;
 }
示例#17
0
 public Engine(IFestivalController festivalController, ISetController setController)
 {
     this.festivalCоntroller = festivalController;
     this.setCоntroller      = setController;
 }
 public Engine(IWriter writer, IReader reader, IFestivalController festivalController)
 {
     this.writer             = writer;
     this.reader             = reader;
     this.festivalController = festivalController;
 }
示例#20
0
 public AddPerformerToSetCommand(IFestivalController festivalController)
 {
     this.festivalController = festivalController;
 }
 public RepairInstrumentsCommand(IFestivalController festivalController)
 {
     this.festivalController = festivalController;
 }
示例#22
0
 public SignUpPerformerCommand(IFestivalController festivalController)
 {
     this.festivalController = festivalController;
 }