예제 #1
0
        public ImageHashGenerator()
        {
            _dataSourceMprRedirect = new MPRRedirect(ConfigurationManager.ConnectionStrings["SourceDB"].ConnectionString);
            _dataDestMprRedirect = new MPRRedirect(ConfigurationManager.ConnectionStrings["DestDB"].ConnectionString);

            _dataSourceRepo = new SqlRepository(_dataSourceMprRedirect);
            _dataDestRepo = new SqlRepository(_dataDestMprRedirect);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public ServiceUtils(SqlRepository imageHashRepo)
 {
     _imageHashRepo = imageHashRepo;
 }