static void Main(string[] args) { AuditTrail audit = new AuditTrail(); TransferMoneyTask transferMoney = new TransferMoneyTask(audit); transferMoney.Execute(); }
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"); }
public Task() { this.AuditTrail = new AuditTrail(); }