[Quantproject-developers] QuantProject/b4_Business/a0_Validation Validator.cs,1.2,1.3
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-05-26 15:34:41
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a0_Validation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20373/b4_Business/a0_Validation Modified Files: Validator.cs Log Message: The Validate method has been fixed Index: Validator.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a0_Validation/Validator.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Validator.cs 8 May 2004 17:23:03 -0000 1.2 --- Validator.cs 26 May 2004 15:34:25 -0000 1.3 *************** *** 18,32 **** } /// <summary> ! /// Validates (if the case) the given ticker from startDate to endDate /// </summary> /// <param name="ticker"></param> ! /// <param name="startDate"></param> ! /// <param name="endDate"></param> ! /// <returns>True if and only if the ticker is validated for the given range</returns> ! private static bool Validate( string ticker , DateTime startDate , DateTime endDate ) { ValidateDataTable validateDataTable = new ValidateDataTable(); ! validateDataTable.AddRows( ticker , startDate , endDate ); ! return ( validateDataTable.Rows.Count == 0 ); } /// <summary> --- 18,34 ---- } /// <summary> ! /// Validates (if the case) the given ticker /// </summary> /// <param name="ticker"></param> ! /// <returns>True if and only if the ticker is validated</returns> ! private static bool Validate( string ticker ) { + bool isValid; ValidateDataTable validateDataTable = new ValidateDataTable(); ! validateDataTable.AddRows( ticker ); ! isValid = ( validateDataTable.Rows.Count == 0 ); ! if ( isValid ) ! ValidatedTickers.Validate( validateDataTable.Quotes ); ! return isValid; } /// <summary> |