コード例 #1
0
ファイル: GateProvider.cs プロジェクト: srinivasandelta/3I-VS
 public GateProvider(Gate gate)
 {
     this.Gate = gate;
     
     this._comPortProvider = GetComPortProvider();
     this._cameraProviders = this.Gate.Cameras.Select(x => new HikVisionCameraProvider(x));
     this._licenceNumberProvider = new LicenceNumberProvider(this.Gate.VehicleNumberSaveFolder);
 }
コード例 #2
0
        public void TestReadFromCsvFile()
        {
            var executiongDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var licSaveLoc = Path.Combine(executiongDir, "Resources", "LicenceNoLoc");
            var licenceNumberProvider = new LicenceNumberProvider(licSaveLoc);
            var licenceNumber = licenceNumberProvider.Read();

            Assert.AreEqual(licenceNumber, "EM458$");
        }