public SuspectCarFormPresenter(IMessageBoxService messageBoxService, ILicensePlateEventPublisher licensePlateEventPublisher, LicensePlateRepository licensePlateRepository) { if (messageBoxService == null) throw new ArgumentNullException("messageBoxService"); if (licensePlateRepository == null) throw new ArgumentNullException("licensePlateRepository"); _messageBoxService = messageBoxService; _licensePlateRepository = licensePlateRepository; }
public LicensePlateUploadMonitor(string pathToMonitor, ILicensePlateEventPublisher plateEventPublisher) { if (pathToMonitor == null) throw new ArgumentNullException("pathToMonitor"); if (!System.IO.Directory.Exists(pathToMonitor)) throw new System.IO.DirectoryNotFoundException(pathToMonitor + " not found"); _plateEventPublisher = plateEventPublisher; Configuration = new LicenseParsingConfig(); _pathToMonitor = pathToMonitor; }
public SuspectLicensePlateChecker(ILicensePlateCheckService licensePlateCheckService, ILicensePlateEventPublisher licensePlateEventPublisher, IEnumerable<INotifySuspeciousLicensePlate> suspeciousLicensePlateObserver) { if (licensePlateCheckService == null) throw new ArgumentNullException("licensePlateCheckService"); if (licensePlateEventPublisher == null) throw new ArgumentNullException("licensePlateEventPublisher"); if (suspeciousLicensePlateObserver == null) throw new ArgumentNullException("suspeciousLicensePlateObserver"); _licensePlateCheckService = licensePlateCheckService; _suspeciousLicensePlateObserver = suspeciousLicensePlateObserver; _licensePlateEventPublisher = licensePlateEventPublisher; _licensePlateEventPublisher.RegisterForLicensePlateEvent(this); }
public SuspectCarFormPresenter(IMessageBoxService messageBoxService, ILicensePlateEventPublisher licensePlateEventPublisher, LicensePlateRepository licensePlateRepository) { if (messageBoxService == null) { throw new ArgumentNullException("messageBoxService"); } if (licensePlateRepository == null) { throw new ArgumentNullException("licensePlateRepository"); } _messageBoxService = messageBoxService; _licensePlateRepository = licensePlateRepository; }
public LicensePlateUploadMonitor(string pathToMonitor, ILicensePlateEventPublisher plateEventPublisher) { if (pathToMonitor == null) { throw new ArgumentNullException("pathToMonitor"); } if (!System.IO.Directory.Exists(pathToMonitor)) { throw new System.IO.DirectoryNotFoundException(pathToMonitor + " not found"); } _plateEventPublisher = plateEventPublisher; Configuration = new LicenseParsingConfig(); _pathToMonitor = pathToMonitor; }
public SuspectLicensePlateChecker(ILicensePlateCheckService licensePlateCheckService, ILicensePlateEventPublisher licensePlateEventPublisher, IEnumerable <INotifySuspeciousLicensePlate> suspeciousLicensePlateObserver) { if (licensePlateCheckService == null) { throw new ArgumentNullException("licensePlateCheckService"); } if (licensePlateEventPublisher == null) { throw new ArgumentNullException("licensePlateEventPublisher"); } if (suspeciousLicensePlateObserver == null) { throw new ArgumentNullException("suspeciousLicensePlateObserver"); } _licensePlateCheckService = licensePlateCheckService; _suspeciousLicensePlateObserver = suspeciousLicensePlateObserver; _licensePlateEventPublisher = licensePlateEventPublisher; _licensePlateEventPublisher.RegisterForLicensePlateEvent(this); }
public MockLicensePlateGenerator(ILicensePlateEventPublisher publisher) { _publisher = publisher; }