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

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

            var job = await jobDAL.GetJobAsync(jobID);

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

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