Пример #1
0
        public async Task SetCommandContinueAsyncTest()
        {
            var jobID = await jobDAL.AddAsync(AppID, "", "", "", () => Console.WriteLine("Hello World Test!"));

            await jobDAL.SetToPausedAsync(new List <string> {
                jobID
            });                                                        //only PAUSED jobs can be set to continue

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

            var job = await jobDAL.GetJobAsync(jobID);

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

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