public LicensePlateRepository(string outputDirectory, ILicensePlateDataProvider dataProvider)
        {
            if (outputDirectory == null) throw new ArgumentNullException("outputDirectory");
            if (!System.IO.Directory.Exists(outputDirectory))
            {
                throw new System.IO.DirectoryNotFoundException("output directory of license plate image does't exist");
            }
            if (dataProvider == null) throw new ArgumentNullException("dataProvider");

            _outputDirectory = outputDirectory;
            _dataProvider = dataProvider;
            _mapper = new Mapper(outputDirectory);
        }
Esempio n. 2
0
        public LicensePlateRepository(string outputDirectory, ILicensePlateDataProvider dataProvider)
        {
            if (outputDirectory == null)
            {
                throw new ArgumentNullException("outputDirectory");
            }
            if (!System.IO.Directory.Exists(outputDirectory))
            {
                throw new System.IO.DirectoryNotFoundException("output directory of license plate image does't exist");
            }
            if (dataProvider == null)
            {
                throw new ArgumentNullException("dataProvider");
            }

            _outputDirectory = outputDirectory;
            _dataProvider    = dataProvider;
            _mapper          = new Mapper(outputDirectory);
        }