static void Main(string[] args)
        {
            AuditTrail audit = new AuditTrail();

            TransferMoneyTask transferMoney = new TransferMoneyTask(audit);

            transferMoney.Execute();
        }
示例#2
0
        static void Main(string[] args)
        {
            AuditTrail audit = new AuditTrail();

            TransferMoneyTask transferMoney = new TransferMoneyTask(audit);

            transferMoney.Execute();

            GenerateReportTask generateReport = new GenerateReportTask();

            generateReport.Execute();
        }
 public Task(AuditTrail audit)
 {
     this.AuditTrail = audit;
 }
 public TransferMoneyTask(AuditTrail audit) : base(audit)
 {
 }
 public GenerateReportTask(AuditTrail audit) : base(audit)
 {
 }
        public override void Execute()
        {
            AuditTrail.Record();

            Console.WriteLine("Generate Report");
        }
        public override void Execute()
        {
            AuditTrail.Record();

            Console.WriteLine("Transfer Money");
        }
示例#8
0
 public Task()
 {
     this.AuditTrail = new AuditTrail();
 }