コード例 #1
0
        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();

            }
        }
コード例 #2
0
 public void Escalate(Account account)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public void CreateIncident(Account account, int incidentId, SqlConnection connection, SqlTransaction transaction)
 {
     throw new NotImplementedException();
 }