public void TestRecentJobsExecuteMethodReturnsAListOfJobsForTrainer() { string stream = "All"; RecentJobs recJobs = new RecentJobs(); recJobs.SetStringStream(stream); List<DbJob> jobs = recJobs.Execute(); Assert.AreEqual(5, jobs.Count()); }
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()); }
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()); }
public void TestRecentJobsExecuteMethodReturnsAListOfJobsForTrainer() { string stream = "All"; RecentJobs recJobs = new RecentJobs(); recJobs.SetStringStream(stream); List <DbJob> jobs = recJobs.Execute(); Assert.AreEqual(5, jobs.Count()); }
public void Test_RecentJobsClass_ExecuteMethod_Returns_A_List_of_DbJob() { RecentJobs rJobs = new RecentJobs(); Assert.IsInstanceOf(typeof(List<DbJob>), rJobs.Execute()); }
public void Test_RecentJobsClass_ExecuteMethod_Returns_A_List_of_DbJob() { RecentJobs rJobs = new RecentJobs(); Assert.IsInstanceOf(typeof(List <DbJob>), rJobs.Execute()); }
public List<DbJob> RecentJobs(string stream) { RecentJobs recJobs = new RecentJobs(); recJobs.SetStringStream(stream); return recJobs.Execute(); }