public void GetFileUrlShouldGetCorrectUrl(string bucketName, string key, string expectedUrl) { string k = key; string url = FileServiceUtilities.GetFileUrl(bucketName, key); Assert.Equal(expectedUrl, url); }
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); }