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