Ejemplo n.º 1
0
        public async Task GetJobsToRunAsyncTest()
        {
            var jobID = await jobDAL.AddAsync(AppID, "", "", "", () => Console.WriteLine("Hello World Test1!"));

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

            var jobs = await jobDAL.GetJobsToRunAsync(1);

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

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

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