Example #1
0
        public void GetAllJobsTest()
        {
            JobStatusLogic    target   = new JobStatusLogic();
            List <JobsStatus> expected = new List <JobsStatus>
            {
                new JobsStatus {
                    RequestName = "RName1", TaskId = "102", Status = "Pass1"
                },
                new JobsStatus {
                    RequestName = "RName2", TaskId = "102", Status = "Pass2"
                },
                new JobsStatus {
                    RequestName = "RName3", TaskId = "103", Status = "Pass3"
                },
                new JobsStatus {
                    RequestName = "RName4", TaskId = "104", Status = "Pass4"
                },
                new JobsStatus {
                    RequestName = "RName5", TaskId = "105", Status = "Pass5"
                }
            };
            List <JobsStatus> actual = target.GetAllJobs();

            Assert.AreEqual(expected.Count, actual.Count);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public List <TrackTask> GetAllJobs(TrackTask data)
 {
     return(_jobStatusLogic.GetAllJobs(data));
 }