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

            var jobs = jobDAL.GetJobViews(1, 10);

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

            Assert.True(jobs.Total >= 2);
            var jobIDs = jobs.Items.Select(j => j.JobID).ToList();

            Assert.True(jobIDs.Contains(jobID));
            Assert.True(jobIDs.Contains(jobID2));
        }