Esempio n. 1
0
        public void GetFileUrlShouldGetCorrectUrl(string bucketName, string key, string expectedUrl)
        {
            string k   = key;
            string url = FileServiceUtilities.GetFileUrl(bucketName, key);

            Assert.Equal(expectedUrl, url);
        }
Esempio n. 2
0
        public void GetFileUrlShouldContainCorrectS3Endpoints()
        {
            string bucketName = "someBucket";
            string key        = "somKey/hello";

            string url = FileServiceUtilities.GetFileUrl(bucketName, key);

            Assert.Contains("https://", url);
            Assert.Contains(".s3.amazonaws.com/", url);
        }