}//PerformanceCheckController /// <summary> /// /// </summary> /// <param name="performanceCheck"></param> /// <returns></returns> public bool StoreOcrPerformance(PerformanceCheck performanceCheck) { // Uses _sqlConnection connection for storing performance related data //Implementation pending PerformanceCheckModel performanceCheckModel = null; if (null != performanceCheck && performanceCheck.OCR != 0) { performanceCheckModel = new PerformanceCheckModel(_sqlConnection); } return(performanceCheckModel.StoreOcrPerformance(performanceCheck)); }//StoreOcrPerformance
public void counter_is_working() { PerformanceCheck .Check(ToCheck) .ShouldBeGreaterThan(0); }
public void counter_is_working_for_lambda_expression() { PerformanceCheck .Check(() => Thread.Sleep(100)) .ShouldBeGreaterThan(0); }
}//PerformanceCheckModel /// <summary> /// Method use to store performance related data of a OCR /// </summary> /// <param name="performanceCheck"></param> /// <returns>bool (Data is stored successfully or not)</returns> public bool StoreOcrPerformance(PerformanceCheck performanceCheck) { // Uses _sqlConnection connection for storing performance related data //Implementation pending return(false); }//StoreOcrPerformance