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

            var jobs = jobDAL.GetJobs(new List <string> {
                jobID, jobID2
            });

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

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

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