Exemplo n.º 1
0
        /// <exception cref="HAppFailureException" />
        /// <exception cref="OperationFailedException" />
        static void FillTest_Command()
        {
            bool withCleanup = false;

            if (CommandParameter != null)
            {
                if (CommandParameter.Equals("WithCleanup",
                                            StringComparison.OrdinalIgnoreCase))
                {
                    withCleanup = true;
                }
                else
                {
                    ThrowIncorrectCommandParameter();
                }
            }
            DoFillTest(withCleanup);
        }
Exemplo n.º 2
0
 /// <exception cref="HAppFailureException" />
 static bool HasNotInTransactionParameter()
 {
     return(CommandParameter.Equals("NotInTransaction",
                                    StringComparison.OrdinalIgnoreCase));
 }