public void SetCommandPauseTest() { var jobID = jobDAL.Add(AppID, "", "", "", () => Console.WriteLine("Hello World Test!")); jobDAL.SetToRunning(new List <string> { jobID }); //only RUNNING jobs can be set to pause jobDAL.SetCommandPause(new List <string> { jobID }); var job = jobDAL.GetJob(jobID); jobDAL.Delete(new List <string> { jobID }); Assert.Equal(JobCommand.Pause, job.Command); }