Beispiel #1
0
        public void SetUp()
        {
            _assemblyHelper = new AssemblyHelper(Assembly.GetExecutingAssembly());
            FindAssemblyDirectory();
            CreateTestHistoryJobs();
            InitTempFolder();

            _dbPathProvider = Substitute.For <IDBPathProvider>();
            _dbPathProvider.SqLiteDBFolder.Returns(TmpTestFolder);
            _dbPathProvider.SqLiteDBPath.Returns(Path.Combine(TmpTestFolder, "MonitoringSQLiteDb.sqlite"));
        }
 public DBDoorDetector(IDBPathProvider dbPathProvider)
 {
     this._DbPathProvider = dbPathProvider;
 }
 public DoorDetectorService(IDBPathProvider pathProvider)
 {
     this._db = new DBDoorDetector(pathProvider);
 }