public void ProcessIncident(Account account, int incidentId, SqlConnection connection, SqlTransaction transaction) { if (account.AccountType == "VIP") { var escalator = new AccountEscalator(); escalator.Escalate(account); return; } var dataAccess = new DataAccess(); dataAccess.CreateIncident(account, incidentId, connection, transaction); if (transaction != null) { transaction.Commit(); } }
public void Escalate(Account account) { throw new NotImplementedException(); }
public void CreateIncident(Account account, int incidentId, SqlConnection connection, SqlTransaction transaction) { throw new NotImplementedException(); }