Esempio n. 1
0
 public void ThenTheBatchCommitsWithoutErrorsOrExceptions()
 {
     if (!BusinessProcess.IsCompleted())
     {
         throw new Exception("Batch committed with exceptions or errors.");
     }
 }
Esempio n. 2
0
 public void ThenTheBatchCommitsWithoutErrorsOrExceptionsAndRecordProcessed(int numRecords)
 {
     if (!BusinessProcess.IsCompleted())
     {
         throw new Exception("Batch committed with exceptions or errors.");
     }
     if (!BusinessProcess.IsNumRecordsProcessed(numRecords))
     {
         throw new Exception(String.Format("'{0}' was not the number of records processed.", numRecords));
     }
 }