public void WithdrawFunds(double amount) { Log.LogDebug("Entered", "Atm/WithdrawFunds"); WithdrawFailedDueAmountLessThanZero withdrawFailedDueAmountLessThanZeroEvent = null; WithdrawValidated withdrawValidatedEvent = null; OnWithdrawFunds(amount, ref withdrawFailedDueAmountLessThanZeroEvent, ref withdrawValidatedEvent); if (withdrawFailedDueAmountLessThanZeroEvent != null) { Log.LogDebug("Pre", "Atm/WithdrawFunds/ApplyChange/WithdrawFailedDueAmountLessThanZero"); ApplyChange(withdrawFailedDueAmountLessThanZeroEvent); Log.LogDebug("Post", "Atm/WithdrawFunds/ApplyChange/WithdrawFailedDueAmountLessThanZero"); } if (withdrawValidatedEvent != null) { Log.LogDebug("Pre", "Atm/WithdrawFunds/ApplyChange/WithdrawValidated"); ApplyChange(withdrawValidatedEvent); Log.LogDebug("Post", "Atm/WithdrawFunds/ApplyChange/WithdrawValidated"); } Log.LogDebug("Pre", "Atm/WithdrawFunds/OnWithdrawFundsHandled"); OnWithdrawFundsHandled(amount); Log.LogDebug("Post", "Atm/WithdrawFunds/OnWithdrawFundsHandled"); Log.LogDebug("Exited", "Atm/WithdrawFunds"); }
partial void OnWithdrawFunds(double amount, ref WithdrawFailedDueAmountLessThanZero withdrawFailedDueAmountLessThanZeroEvent, ref WithdrawValidated withdrawValidatedEvent);
partial void OnHandle(WithdrawValidated @event) { throw new NotImplementedException(); }