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

            jobDAL.SetCommandRunNow(new List <string> {
                jobID
            });
            var job = jobDAL.GetJob(jobID);

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

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