Example #1
0
        public async Task SetCommandRunNowAsyncTest()
        {
            var jobID = await jobDAL.AddAsync(AppID, "", "", "", () => Console.WriteLine("Hello World Test!"));

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

            var job = await jobDAL.GetJobAsync(jobID);

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

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