private CommandExecuter CreateSut()
 {
     vehicleManager = new vehicleManagerMock();
     console        = new ConsoleMock();
     vehicleParser  = null;
     garageManager  = new GarageManagerMock();
     garageParser   = new GarageParserMock();
     csvImporter    = null;
     file           = null;
     return(new CommandExecuter(vehicleManager, console, vehicleParser, garageManager, garageParser, csvImporter, file));
 }
 public CommandExecuterFactory(
     IVehicleManager vehilceManager,
     IConsoleInputOutput console,
     IVehicleParser vehicleParser,
     IGarageManager garageManager,
     IGarageParser garageParser,
     ICsvImporter csvImporter,
     IFileInputOutput file)
 {
     this.vehicleParser  = vehicleParser;
     this.vehilceManager = vehilceManager;
     this.console        = console;
     this.garageManager  = garageManager;
     this.garageParser   = garageParser;
     this.csvImporter    = csvImporter;
     this.file           = file;
 }
Beispiel #3
0
 public CommandExecuter(IVehicleManager vehicleManager,
                        IConsoleInputOutput consoleInputOutput,
                        IVehicleParser vehicleParser,
                        IGarageManager garageManager,
                        IGarageParser garageParser,
                        ICsvImporter csvImporter,
                        IFileInputOutput file
                        )
 {
     this.selectedVehicles = new Dictionary <Vehicle, ParkingPlaceOutput>();
     this.vehicleManager   = vehicleManager;
     this.console          = consoleInputOutput;
     this.vehicleParser    = vehicleParser;
     this.garageManager    = garageManager;
     this.garageParser     = garageParser;
     this.csvImporter      = csvImporter;
     this.file             = file;
 }
Beispiel #4
0
 public CsvImporter(IFileInputOutput file, IVehicleParser vehilceParser)
 {
     this.file          = file;
     this.vehilceParser = vehilceParser;
 }