public Engine(IBlobFactory blobFactory, IBlobData data, IInputReader reader, IOutputWriter writer)
 {
     this.blobFactory = blobFactory;
     this.data = data;
     this.reader = reader;
     this.writer = writer;
 }
 public Engine(ICreateBlobFactory blob, IBlobData data, IInputReader reader, IOutputWriter writer)
 {
     this.createBlob = blob;
     this.data = data;
     this.reader = reader;
     this.writer = writer;
 }
 public Engine(IInputReader reader, IOutputWriter writer, ICommandManager commandManager)
 {
     this.writer = writer;
     this.reader = reader;
     this.commandManager = commandManager;
     this.commandManager.Engine = this;
 }
 public SuperEngine(IInputReader reader, IRenderer renderer)
 {
     this.reader = reader;
     this.renderer = renderer;
     this.characters = new List<GameObject>();
     this.items = new List<GameObject>();
 }
 public MinesweeperEngine(IDataBase db, ICommandManager commandManager, IInputReader reader, IOutputWriter writer)
 {
     this.db = db;
     this.commandManager = commandManager;
     this.commandManager.Engine = this;
     this.reader = reader;
     this.writer = writer;
 }
示例#6
0
 public Engine(IData data, IInputReader reader, IOutputWriter writer, IWarEffectFactory warFactory, IAttackTypeFactory attackFactory, IGroupFactory groupFactory)
 {
     this.data = data;
     this.reader = reader;
     this.writer = writer;
     this.warFactory = warFactory;
     this.attackTypeFectory = attackFactory;
     this.groupFactory = groupFactory;
 }
示例#7
0
 public Engine(IUnitFactory unitFactory, IResourceFactory resourceFactory,IBuildingFactory buildingFactory, IInputReader reader, IOutputWriter writer, IEmpiresData data)
 {
     this.unitFactory = unitFactory;
     this.resourceFactory = resourceFactory;
     this.buildingFactory = buildingFactory;
     this.reader = reader;
     this.writer = writer;
     this.data = data;
 }
示例#8
0
 public Engine(IBuildingFactory buildingFactory, IResourseFactory resourseFactory, IUnitFactory unitFactory, IData empireData, IInputReader reader, IOutputWriter writer)
 {
     this.buildingFactory = buildingFactory;
        this.resourseFactory = resourseFactory;
        this.unitFactory = unitFactory;
        this.empireData = empireData;
        this.reader = reader;
        this.writer = writer;
 }
示例#9
0
 public WasteDisposalPlant(
     IWasteDisposalController wasteDisposalController,
     IInputReader inputReader,
     IOutputWriter outputWriter)
 {
     this.wasteDisposalController = wasteDisposalController;
     this.inputReader = inputReader;
     this.outputWriter = outputWriter;
 }
示例#10
0
 public Engine(CommandDispatcher commandDispatcher,IInputReader inputReader)
 {
     this.categories = new List<ICategory>();
     this.products = new List<IProduct>();
     this.commandDispatcher = commandDispatcher;
     this.inputReader = inputReader;
     this.runningEngine = false;
     this.products.Add(new Toothpaste("Duck","drin",12,Gender.Unisex,"soda"));
 }
示例#11
0
 public Engine(IBuildingFactory buildingFactory, IResourceFactory resourceFactory, IUnitFactory unitFactory, IData data, IInputReader reader, IOuptupWriter writer)
 {
     this.buildingFactory = buildingFactory;
     this.resourceFactory = resourceFactory;
     this.unitFactory = unitFactory;
     this.data = data;
     this.reader = reader;
     this.writer = writer;
 }
示例#12
0
 public Engine(IInputReader reader, IRenderer renderer)
 {
     this.reader = reader;
     this.renderer = renderer;
     this.gameObjects = new List<GameObject> ();
     this.ObstacleFactory = new ObstacleFactory();
     this.PenaltyFactory = new PenaltyFactory();
     this.BonusFactory = new BonusFactory();
     this.Score = 0;
 }
示例#13
0
 public BlobEngine(IBlobFactory blobFactory, IAttackFactory attackFactory, IBehaviorFactory behaviorFactory,
     IData data, IInputReader reader, IOutputWriter writer)
 {
     this.blobFactory = blobFactory;
     this.attackFactory = attackFactory;
     this.behaviorFactory = behaviorFactory;
     this.data = data;
     this.reader = reader;
     this.writer = writer;
 }
示例#14
0
 public GameEngine(
     IInputReader reader,
     IOutputWriter writer,
     IGameData data,
     IBlobFactory blobFactory)
 {
     this.reader = reader;
     this.writer = writer;
     this.data = data;
     this.blobFactory = blobFactory;
 }
示例#15
0
        public GameEngine(IRenderer renderer, IInputReader inputReader)
        {
            this.renderer = renderer;
            this.inputReader = inputReader;
            this.board = new Board();
            this.vesselFactory = new VesselFactory();

            this.allVessels = this.vesselFactory.CreateAllVessels();
            this.statusMessage = string.Empty;
            this.shotsMade = 0;
        }
示例#16
0
 public Engine(
     ICommandDispatcher commandDispatcher,
     IInputReader reader,
     IOutputWriter writer)
 {
     this.commandDispatcher = commandDispatcher;
     this.reader = reader;
     this.writer = writer;
     this.commandDispatcher.HardwRepository = HardwareRepositoty.Instance;
     this.isRunning = true;
 }
示例#17
0
        public void Run(IInputReader inputReader, IInputReader glossaryReader)
        {
            glossary = new DefaultGlossary(glossaryReader, Properties.Settings.Default.ReadGlossaryIds);

            input = inputReader.ReadInput();

            foreach (IExecution execution in executions)
            {
                execution.Run(input, glossary);
            }
        }
        public Engine(IBlobFactory blobFactory, IAttackFactory attackFactory, IBehaviorFactory behaviorFactory,
            IInputReader reader, IOutputWriter writer, IBlobData blobData)
        {
            this.blobFactory = blobFactory;
            this.attackFactory = attackFactory;
            this.behaviorFactory = behaviorFactory;
            this.reader = reader;
            this.writer = writer;
            this.blobData = blobData;

            this.shouldReportEvents = false;
        }
示例#19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Engine"/> class.
 /// </summary>
 /// <param name="commandHandler">IHandler object.</param>
 /// <param name="commandArguments">ICommandArguments object.</param>
 /// <param name="inputReader">IInputReader object.</param>
 /// <param name="turnUpdater">IUpdateable object.</param>
 public Engine(
     IHandler<ICommandArguments> commandHandler, 
     ICommandArguments commandArguments,
     IInputReader inputReader, 
     IUpdateable turnUpdater)
 {
     this.commandHandler = commandHandler;
     this.commandArguments = commandArguments;
     this.inputReader = inputReader;
     this.turnUpdater = turnUpdater;
     this.isRunning = false;
 }
示例#20
0
 public Engine(
     IBlobFactory blobFactory,
     IAttackFactory attackFactory,
     IBehaviorFactory behaviorFactory,
     IInputReader reader,
     IOutputWriter outputWriter)
 {
     this.BlobFactory = blobFactory;
     this.AttackFactory = attackFactory;
     this.BehaviorFactory = behaviorFactory;
     this.InputReader = reader;
     this.OutputWriter = outputWriter;
 }
 public BlobsEngine(IBlobFactory blobFactory,
     IAttackFactory attackFactory,
     IBehaviorFactory behaviorFactory,
     IBlobsData blobsData,
     IInputReader inputReader,
     IOutputWriter outputWriter)
 {
     this.blobFactory = blobFactory;
     this.attackFactory = attackFactory;
     this.behaviorFactory = behaviorFactory;
     this.blobsData = blobsData;
     this.inputReader = inputReader;
     this.outputWriter = outputWriter;
 }
示例#22
0
 public Engine(IUnitContainer unitContainer, 
     IInputReader reader, 
     IOutputWriter writer,
     ICommandDispatcher commandDispatcher,
     IUnitEffector unitEffector)
 {
     this.units = new LinkedList<IUnit>();
     this.unitContainer = unitContainer;
     this.writer = writer;
     this.reader = reader;
     this.commandDispatcher = commandDispatcher;
     this.commandDispatcher.Engine = this;
     this.unitEffector = unitEffector;
 }
示例#23
0
 public Engine(
     IBuildingFactory buildingFactory,
     IResourceFactory resourceFactory,
     IUnitFactory unitFactory,
     IDatabase db,
     IInputReader reader,
     IOutputWriter writer)
 {
     this.buildingFactory = buildingFactory;
     this.resourceFactory = resourceFactory;
     this.unitFactory = unitFactory;
     this.db = db;
     this.reader = reader;
     this.writer = writer;
 }
示例#24
0
        public GameEngine(
            IGameDatabase gameDatabase,
            IInputReader reader,
            IOutputWriter writer)
        {
            this.gameDatabase = gameDatabase;
            this.reader = reader;
            this.writer = writer;

            this.points = 0;
            this.currentRow = 0;
            this.currentCol = 0;

            this.PrintWelcomeMessage();
        }
        public CheperaleHotelBookingSystemEngine(IHotelBookingSystemData database, IInputReader inputReader)
        {
            if (database == null)
            {
                throw new ArgumentNullException();
            }

            if (inputReader == null)
            {
                throw new ArgumentNullException();
            }

            this.inputReader = inputReader;
            this.database = database;
        }
        /// <summary>
        /// Инициализирует новый экземпляр класса AutocompleteApplication
        /// </summary>
        /// <param name="dictionaryWordsInputReader">
        /// Обеспечивает чтение словарных слов
        /// </param>
        /// <param name="beginningsOfWordsInputReader">
        /// Обеспечивает чтение начальных частей слов
        /// </param>
        /// <param name="autocompleteOutputWriter">
        /// Обеспечивает вывод найденных автодополнений
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// dictionaryWordsInputReader, beginningsOfWordsInputReader или
        /// autocompleteOutputWriter содержит null.
        /// </exception>
        public AutocompleteApplication(
            IInputReader<DictionaryWord> dictionaryWordsInputReader,
            IInputReader<string> beginningsOfWordsInputReader,
            IOutputWriter<DictionaryWord> autocompleteOutputWriter)
        {
            if (dictionaryWordsInputReader == null)
            {
                throw new ArgumentNullException("dictionaryWordsInputReader");
            }

            if (beginningsOfWordsInputReader == null)
            {
                throw new ArgumentNullException("beginningsOfWordsInputReader");
            }

            if (autocompleteOutputWriter == null)
            {
                throw new ArgumentNullException("autocompleteOutputWriter");
            }

            _dictionaryWordsInputReader = dictionaryWordsInputReader;
            _beginningsOfWordsInputReader = beginningsOfWordsInputReader;
            _autocompleteOutputWriter = autocompleteOutputWriter;
        }
 public DictionaryBuilder(IInputReader reader, IOutputWriter writer)
 {
     this.reader = reader ?? throw new ArgumentNullException("reader");
     this.writer = writer ?? throw new ArgumentNullException("writer");
 }
 public Engine()
 {
     this.dungeonMaster = new DungeonMaster();
     this.inputReader   = new ConsoleReader();
     this.outputWriter  = new ConsoleWriter();
 }
 public IOManager(IInputReader reader, IOutputWriter writer)
 {
     this.reader = reader;
     this.writer = writer;
 }
示例#30
0
 public MatrixBuilder(IInputReader _inputreader, IPrinter _printer)
 {
     Inputreader = _inputreader;
     Printer     = _printer;
 }
示例#31
0
 public Task01(IInputReader inputReader) : base(inputReader)
 {
     _lines = inputReader.ReadLines();
 }
示例#32
0
 protected Puzzle(IInputReader inputReader)
 {
     InputReader = inputReader;
 }
示例#33
0
 public CustomLogicComponent(IInputReader reader, IOutputWriter writer)
 {
     this.reader = reader;
     this.writer = writer;
 }
示例#34
0
        public void GetInputReader_Should_CreateCommandListInputReader_When_CallFor_ICommandList()
        {
            IInputReader <ICommandList> inputReader = _factory.GetInputReader <ICommandList>();

            Assert.IsInstanceOf <CommandsInputReader>(inputReader);
        }
示例#35
0
 public PayslipGeneratorConsole(IInputReader inputReader, IOutputWriter outputWriter, IPayslipGenerator payslipGenerator)
 {
     _inputReader      = inputReader;
     _outputWriter     = outputWriter;
     _payslipGenerator = payslipGenerator;
 }
示例#36
0
        public void GetInputReader_Should_CreatePlatoInputReader_When_CallFor_IPlato()
        {
            IInputReader <IPlato> inputReader = _factory.GetInputReader <IPlato>();

            Assert.IsInstanceOf <PlatoInputReader>(inputReader);
        }
示例#37
0
        public void GetInputReader_Should_CreatePositionInputReader_When_CallFor_IPosition()
        {
            IInputReader <IPosition> inputReader = _factory.GetInputReader <IPosition>();

            Assert.IsInstanceOf <PositionInputReader>(inputReader);
        }
示例#38
0
 public Engine(IUnitFactory unitFactory, IResourceFactory resourceFactory, IBuildingFactory buildingFactory, IInputReader reader, IOutputWriter writer, IEmpiresData data)
 {
     this.unitFactory     = unitFactory;
     this.resourceFactory = resourceFactory;
     this.buildingFactory = buildingFactory;
     this.reader          = reader;
     this.writer          = writer;
     this.data            = data;
 }
示例#39
0
 public Engine(IInputReader reader, IOutputWriter writer, HeroManager heroManager)
 {
     this.reader      = reader;
     this.writer      = writer;
     this.heroManager = heroManager;
 }
示例#40
0
 public Day05Puzzle02(IInputReader inputReader) : base(inputReader)
 {
 }
示例#41
0
 public IEither <TResult, ParseError> Parse(IInputReader input)
 {
     return(from resultA in parser.Parse(input)
            from resultB in func(resultA).Parse(input)
            select combine(resultA, resultB));
 }
 public Paragraph(IInputReader inputReader) : base(inputReader)
 {
     isValidInput = base.isValidInput;
 }
 public MarkowHuffmanCoderInterface(IInputReader inputReader, ICoderOutputWriter coderOutputWriter)
 {
     this.inputReader       = inputReader;
     this.coderOutputWriter = coderOutputWriter;
 }
示例#44
0
 public Engine(IHotelBookingSystemData database, IInputReader reader, IOutputWriter writer)
 {
     this.database = database;
     this.reader = reader;
     this.writer = writer;
 }
示例#45
0
 public HumanPlayer(IInputReader inputReader)
 {
     _inputReader = inputReader;
 }
示例#46
0
 public PathFinderService(IInputReader inputReader)
 {
     _inputReader = inputReader;
 }
 public ConsoleForumCommandManager(IInputReader consoleReader, IOutputWriter consoleWriter)
 {
     this.consoleReader = consoleReader;
     this.consoleWriter = consoleWriter;
     this.currentlyLoggedInUser = new Principal();
 }
示例#48
0
 public Engine(IInputWriter writer, IInputReader reader, ICommandInterpreter interpreter)
 {
     this.writer      = writer;
     this.reader      = reader;
     this.interpreter = interpreter;
 }
示例#49
0
 public Engine(IPerformanceDatabase database, IInputReader reader, IOutputWriter writer)
 {
     this.database = database;
     this.reader = reader;
     this.writer = writer;
 }
示例#50
0
 public Engine(IInputReader reader, IOutputWriter writer, ICommandInterpreter commandInterpreter)
 {
     this.reader             = reader;
     this.writer             = writer;
     this.commandInterpreter = commandInterpreter;
 }
示例#51
0
 public CalculatorGui(ICalculator calculator, IInputReader inputReader, IOutputWritter outputWritter)
 {
     this.calculator = calculator;
     this.inputReader = inputReader;
     this.outputWritter = outputWritter;
 }
示例#52
0
 public Engine(IInputReader consoleReader, IOutputWriter consoleWriter, IGameController gameController)
 {
     this.consoleReader  = consoleReader;
     this.consoleWriter  = consoleWriter;
     this.gameController = gameController;
 }
示例#53
0
文件: Robot.cs 项目: gjcraig/XlnTest
 public Robot(IInputReader inputReader)
 {
     _inputReader = inputReader;
 }
 public void OneTimeSetup()
 {
     _inputReader = new InputReader();
 }
示例#55
0
 public BonAppetit(IOutputWriter outputWriter, IInputReader inputReader)
 {
     _outputWriter = outputWriter;
     _inputReader  = inputReader;
 }
示例#56
0
 public TestSolution(IInputReader inputReader, IOutputWriter outputWriter)
     : base(inputReader, outputWriter)
 {
 }
示例#57
0
 private void InitInputReader()
 {
     inputReader = new InputReader(playerMovement, playerShooting);
 }
示例#58
0
 public Engine(IHotelBookingSystemData database, IInputReader reader, IOutputWriter writer)
 {
     this.database = database;
     this.reader   = reader;
     this.writer   = writer;
 }
 public Day14Part1Processor(IInputReader inputReader, string inputResourceName, Day14InputTransform day14InputTransform)
     : base(inputReader, inputResourceName, day14InputTransform)
 {
 }
示例#60
0
 public void SetUp()
 {
     _mockInputReader = Substitute.For <IInputReader>();
     _parser          = new InputParser(_mockInputReader);
 }