static void Main(string[] args) { Notifier notifier; Worker worker = new Worker(); Random random = new Random(); for (int i = 0; i < 50; i++) { notifier = GetRandomNotifier(random); worker.Execute(notifier); } Console.Read(); }
public void Init() { theWorker = new Worker(); }