예제 #1
0
        public void SetCommandStopTest()
        {
            var jobID = jobDAL.Add(AppID, "", "", "", () => Console.WriteLine("Hello World Test!"));

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

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

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