public void CheckDataHistoricalInsertUpdateSecurityPricesFromBERG_EOD() { var mgr = new DataIntegrityController(); for (DateTime thisDate = DateTime.Parse("1mar15"); thisDate < DateTime.Parse("1apr15"); thisDate = thisDate.AddDays(1)) { Console.WriteLine(mgr.CheckDataIntegrityByConsumer("InsertUpdateSecurityPricesFromBERG_EOD", thisDate, 0.1)); } }
public void CheckDataByConsumer() { var mgr = new DataIntegrityController(); Console.WriteLine(mgr.CheckDataIntegrityByConsumer("OptionValueManager", DateTime.Parse("13apr15"), 0.04)); Console.WriteLine(mgr.CheckDataIntegrityByConsumer("InsertUpdateSecurityPricesFromBERG_EOD", DateTime.Parse("30mar15"), 0.1)); //Console.WriteLine(mgr.CheckDataIntegrityByConsumer("RefRates", DateTime.Parse("30mar15"))); //Console.WriteLine(mgr.CheckDataIntegrityByConsumer("IndexPrice", DateTime.Parse("30mar15"))); //Console.WriteLine(mgr.CheckDataIntegrityByConsumer("UpdateStockAndIndices", DateTime.Parse("30mar15"))); //Console.WriteLine(mgr.CheckDataIntegrityByConsumer("UpdateStockAndIndices2", DateTime.Parse("30mar15"))); }
static private void CheckData(DateTime effectiveDate) { var checker = new DataIntegrityController(); checker.CheckDataIntegrityForEntireWarehouse(effectiveDate, 0.15); var thresholds = new Dictionary <string, double> { { "InsertUpdateSecurityPricesFromBERG_EOD", 0.15 }, { "OptionValueManager", 0.05 }, { "BloombergGetFloatingRateBond", 0.1 }, { "IndexPrice", 0.1 }, { "RefRates", 0.1 }, { "GetBossDelta", 0.1 }, { "SSRADR", 0.1 }, { "SSRBond", 0.1 }, { "SSRBossSwap", 0.1 }, { "SSRCountryList", 0.1 }, { "SSRCountryListUnd", 0.8 }, { "SSRFuture", 0.1 }, { "SSRISIN", 0.1 }, { "SSRISINUnd", 0.1 }, { "SSRIndexConst", 0.1 }, { "SSRIndexConst2", 0.1 }, { "SSRSector", 0.1 }, { "SSRStock", 0.1 }, { "SSRStockUnd", 0.1 } }; foreach (var item in thresholds) { checker.CheckDataIntegrityByConsumer(item.Key, effectiveDate, item.Value); } // checker.CheckDataIntegrityForLocalCacheOfTorontoViews(effectiveDate, 0.15); }