public void StartMonitoringTest() { string filePath = "/home/olamide/Projects/BrewLog/BrewLog/bin/Debug/brewing data/2018/september/9/"; string brewNumber = "258"; LiveBrewMonitor liveBrewMonitor = LiveBrewMonitor.GetInstance(); liveBrewMonitor.StartMonitoring(filePath, "Maltina", brewNumber); Assert.IsTrue(liveBrewMonitor.IsMonitoring); }
//Callback public void DoThis(object state) { AutoResetEvent autoEvent = (AutoResetEvent)state; Console.WriteLine("Doing this..."); //aps = new ApplicationSettings(); //aps.FileServerPath = "/home/olamide/Projects/BrewLog/BrewLog/bin/Debug/brewing data/"; //aps.Save(); //filePath = "/home/olamide/Projects/BrewLog/BrewLog/bin/Debug/brewing data/2018/september/9/"; string filePath = appSettings.FileServerPath + "/2018/september/9/"; string brewNumber = "258"; LiveBrewMonitor liveBrewMonitor = LiveBrewMonitor.GetInstance(); //liveBrewMonitor.StartMonitoring(filePath, "Maltina", brewNumber); liveBrewMonitor.MonitorBrews(); // Thread.Sleep(1000); }