Exemple #1
0
        public JobExecutor(IJobHistoryRepository jobHistoryRepo,
                           ChooseDateReminder job1,
                           LateDonationNotification job2,
                           RemoveBookFromShowcase job3)
        {
            _jobHistoryRepo = jobHistoryRepo;

            _jobs = new List <IJob>
            {
                job1,
                job2,
                job3
            };
        }
Exemple #2
0
        public JobExecutor(IJobHistoryRepository jobHistoryRepo,
                           CancelAbandonedDonations job0,
                           ChooseDateReminder job1,
                           LateDonationNotification job2,
                           RemoveBookFromShowcase job3,
                           NewBookNotify job4)
        {
            _jobHistoryRepo = jobHistoryRepo;

            _jobs = new List <IJob>
            {
                job0,
                job1,
                job2,
                job3,
                job4
            };
        }