//
        // GET: /Home/

        public ActionResult Index()
        {
            var client = new HttpClient();
            var result =
                client.GetAsync("http://www.mass.gov/dor/docs/dor/law-changes/faqss-computer-software-2013.pdf").Result;
            var contents   = result.Content.ReadAsByteArrayAsync().Result;
            var thumbprint = GetThumbprint(contents);
            var blobUrl    = ConfigurationManager.AppSettings["BlobValetKeyUrl"];
            var blobUri    = BlobContainerValet.GetDestinationPathFromValetKey(blobUrl);

            WriteToBlobIfChanged(blobUri, thumbprint, contents); // TODO: issue if this gets too large

            DateTimeOffset?mostRecentlyUpdatedAt = default(DateTimeOffset);
            int            verCount        = GetSnapshotCount(ref mostRecentlyUpdatedAt);
            var            urlHistoryModel = new UrlHistoryModel()
            {
                Url           = blobUrl,
                LastUpdatedAt = mostRecentlyUpdatedAt,
                VersionCount  = verCount
            };

            return(View(urlHistoryModel));
        }
        public void ValetKey_GetPathFromValidValetKey_Succeeds()
        {
            var uri = BlobContainerValet.GetDestinationPathFromValetKey(ValetKeyUrl);

            Assert.IsNotNull(uri);
        }