Exemple #1
0
        public async Task DeleteAsyncOldJobs_NotStarted()
        {
            var job = new Job
            {
                AppID   = AppID,
                Created = DateTime.Now.AddHours(-48)
            };

            job = await jobDAL.SetJobAsync(job);

            var count = await jobDAL.DeleteAsync(24, new List <JobStatus?> {
                null
            });

            var outJob = await jobDAL.GetJobAsync(job.JobID);

            Assert.True(count > 0);
            Assert.Null(outJob);
        }