/// <summary> /// Simulates a submission for an offense, and will spit out some sort of string that can be printed out, /// and tell the parking attendant if the car should get a ticket, be towed, etc. /// </summary> /// <param name="scan">Information about the car with the offense</param> /// <returns>String indicating what should be done to the car</returns> public string ScanForOffense(ScanInformation scan) { bool issuedTicket = _ticketIssuer.DetermineTicket(scan.Offense, scan.Tag); bool towCar = _towDeterminerService.ShouldTowCar(scan.Offense, scan.Tag, scan.zipCode); string result = _ticketGenerator.InstructionGenerator(towCar, issuedTicket); return(result); }