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); }
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$"); }