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 void ReadCommandTest_FindCarsByLicensePlateWasCalled()
        {
            bool isCalled           = false;
            var  consoleMock        = new ConsoleMock("select 1;", null, null);
            var  vehicleManagerMock = new vehicleManagerMock((s) =>
            {
                if (s == "1")
                {
                    isCalled = true;
                }
            });

            vehicleManagerMock.FindCarsByLicensePlateReturn = new Dictionary <Vehicle, ParkingPlaceOutput>();
            var factory = new CommandExecuterFactory(vehicleManagerMock, consoleMock, null, null, null, null, null);
            var sut     = new CommandLineParser(consoleMock, CommandDictionaryFactory.Create(), vehicleManagerMock, factory);

            sut.ReadCommand();

            Assert.IsTrue(isCalled);
        }