public ImageHashGenerator() { _dataSourceMprRedirect = new MPRRedirect(ConfigurationManager.ConnectionStrings["SourceDB"].ConnectionString); _dataDestMprRedirect = new MPRRedirect(ConfigurationManager.ConnectionStrings["DestDB"].ConnectionString); _dataSourceRepo = new SqlRepository(_dataSourceMprRedirect); _dataDestRepo = new SqlRepository(_dataDestMprRedirect); }
private static void TestServiceSupport() { MPRRedirect mprRedirect = new MPRRedirect(ConfigurationManager.ConnectionStrings["DestDB"].ConnectionString); var imageHashRepo = new SqlRepository(mprRedirect); var serviceUtils = new ServiceUtils(imageHashRepo); var issues = serviceUtils.GetPhotoIssuesForZip("NY", 11215); int ii = 1; for (int i = 0; i < 10; i++) serviceUtils.PopulatePhotoIssueDetails(issues[i], false); }
public ServiceUtils(SqlRepository imageHashRepo) { _imageHashRepo = imageHashRepo; }