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

            var count = await jobDAL.UpdateAsync(jobID, AppID, "", "", "JobNameUpdated", () => Console.WriteLine("Hello World Test!"));

            var job = await jobDAL.GetJobAsync(jobID);

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

            Assert.True(count > 0);
            Assert.Equal("JobNameUpdated", job.JobName);
        }