Пример #1
0
 public void TestRecentJobsExecuteMethodReturnsAListOfJobsForTrainer()
 {
     string stream = "All";
     RecentJobs recJobs = new RecentJobs();
     recJobs.SetStringStream(stream);
     List<DbJob> jobs = recJobs.Execute();
     Assert.AreEqual(5, jobs.Count());
 }
Пример #2
0
 public void TestRecentJobsExecuteMethodReturnsAListOfJobsForConsultant()
 {
     int user_id = 1;
     RecentJobs recJobs = new RecentJobs();
     recJobs.GetUserStream(user_id);
     List<DbJob> jobs =  recJobs.Execute();
     Assert.AreEqual(1, jobs.Count());
 }
Пример #3
0
        public void TestRecentJobsExecuteMethodReturnsAListOfJobsForConsultant()
        {
            int        user_id = 1;
            RecentJobs recJobs = new RecentJobs();

            recJobs.GetUserStream(user_id);
            List <DbJob> jobs = recJobs.Execute();

            Assert.AreEqual(1, jobs.Count());
        }
Пример #4
0
        public void TestRecentJobsExecuteMethodReturnsAListOfJobsForTrainer()
        {
            string     stream  = "All";
            RecentJobs recJobs = new RecentJobs();

            recJobs.SetStringStream(stream);
            List <DbJob> jobs = recJobs.Execute();

            Assert.AreEqual(5, jobs.Count());
        }
Пример #5
0
 public void Test_RecentJobsClass_ExecuteMethod_Returns_A_List_of_DbJob()
 {
     RecentJobs rJobs = new RecentJobs();
     Assert.IsInstanceOf(typeof(List<DbJob>), rJobs.Execute());
 }
Пример #6
0
        public void Test_RecentJobsClass_ExecuteMethod_Returns_A_List_of_DbJob()
        {
            RecentJobs rJobs = new RecentJobs();

            Assert.IsInstanceOf(typeof(List <DbJob>), rJobs.Execute());
        }
Пример #7
0
 public List<DbJob> RecentJobs(string stream)
 {
     RecentJobs recJobs = new RecentJobs();
     recJobs.SetStringStream(stream);
     return recJobs.Execute();
 }