Ejemplo n.º 1
0
        public void SetCommandContinueTest()
        {
            var jobID = jobDAL.Add(AppID, "", "", "", () => Console.WriteLine("Hello World Test!"));

            jobDAL.SetToPaused(new List <string> {
                jobID
            });                                             //only PAUSED jobs can be set to continue
            jobDAL.SetCommandContinue(new List <string> {
                jobID
            });
            var job = jobDAL.GetJob(jobID);

            jobDAL.Delete(new List <string> {
                jobID
            });

            Assert.Equal(JobCommand.Continue, job.Command);
        }