Exemplo n.º 1
0
        public void GetProgressTest()
        {
            var jobID = jobDAL.Add(AppID, "", "", "", () => Console.WriteLine("Hello World Test1!"));

            Assert.True(!string.IsNullOrWhiteSpace(jobID));

            var note    = "progress note";
            var data    = "progress data";
            var percent = 50;

            jobDAL.SetProgress(jobID, percent, note, data);

            var progress = jobDAL.GetProgress(jobID);

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

            Assert.Equal(percent, progress.Percent);
            Assert.Equal(note, progress.Note);
            Assert.Equal(data, progress.Data);
        }