示例#1
0
        public void GetJobsToRunTest()
        {
            var jobID = jobDAL.Add(AppID, "", "", "", () => Console.WriteLine("Hello World Test1!"));

            Assert.True(!string.IsNullOrWhiteSpace(jobID));

            var jobs = jobDAL.GetJobsToRun(1);

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

            var jobIDs = jobs.Select(j => j.JobID).ToList();

            Assert.True(jobIDs.Contains(jobID));
            Assert.True(jobs.Count == 1);
        }