예제 #1
0
        static void Main(string[] args)
        {
            var auditTrail = new AuditTrail();

            var generateReportTask = new GenerateReportTask(auditTrail);

            generateReportTask.Execute();

            var transferMoneyTask = new TransferMoneyTask(auditTrail);

            transferMoneyTask.Execute();

            Console.WriteLine("--- Exercise ---");

            var chatWindow = new ChatWindow();

            chatWindow.Close();

            Console.ReadLine();
        }
예제 #2
0
 public Task()
 {
     auditTrail = new AuditTrail();
 }
예제 #3
0
 public Task(AuditTrail auditTrail)
 {
     this.auditTrail = auditTrail;
 }