public void StartWorkingThread()
        {
            HarvestManager.ShutdownThread = false;

            // Continue manual harvest if a job exists
            HarvestManager.StartSpeciesObservationUpdateThread();

            //// infinity loop to let separate thread stay alive :)
            //while (true)
            //{
            //    System.Threading.Thread.Sleep(1000);
            //}
        }
        public void StartSpeciesObservationUpdate_ParametersHasValues_ExpectHarvestFromStartDateToEndDateForSpecifiedDataProviders()
        {
            DateTime     startDate = new DateTime(2014, 2, 27);
            DateTime     endDate   = new DateTime(2014, 2, 27);
            List <Int32> dataProviderIds;

            dataProviderIds = new List <Int32>();
            dataProviderIds.Add(1); // Artportalen 2
            //dataProviderIds.Add(8); // WRAM
            HarvestManager.StartSpeciesObservationUpdate(this.GetContext(), startDate, endDate, dataProviderIds, true);

            //// infinity loop to let separate thread stay alive :)
            //while (true)
            //{
            //    System.Threading.Thread.Sleep(1000);
            //}
        }
 public void PauseSpeciesObservationUpdate_AJobIsRunning_ExpectPauseHarvestStatus()
 {
     HarvestManager.PauseSpeciesObservationUpdate(this.GetContext());
 }
 public void ContinueSpeciesObservationUpdate_AJobIsPaused_ExpectContinueHarvestByStoredMetaData()
 {
     HarvestManager.ContinueSpeciesObservationUpdate(this.GetContext());
 }
 public void StartSpeciesObservationUpdate_ParametersAreNotSet_ExpectHarvestAllDataProvidersFromOldestHarvestBeginFromDate()
 {
     HarvestManager.StartSpeciesObservationUpdate(this.GetContext(), DateTime.MinValue, DateTime.MinValue, null, false);
 }
 public void StopSpeciesObservationUpdate_AJobIsRunning_ExpectStopHarvestStatus()
 {
     HarvestManager.StopSpeciesObservationUpdate(this.GetContext());
 }