public void Should_get_public_url_from_store() { var url = "http_//squidex.io/assets"; A.CallTo(() => assetStore.GeneratePublicUrl(fileNameNew)) .Returns(url); var result = sut.GeneratePublicUrl(appId, assetId, assetFileVersion); Assert.Equal(url, result); }
public void Should_invoke_asset_store_to_generate_public_url() { var url = "http_//squidex.io/assets"; A.CallTo(() => assetStore.GeneratePublicUrl(fileName)) .Returns(url); var result = sut.GeneratePublicUrl(assetId, assetFileVersion); Assert.Equal(url, result); }
public void Should_get_public_url_from_store(bool folderPerApp, string?suffix, string fileName) { var fullName = GetFullName(fileName); options.FolderPerApp = folderPerApp; var url = "http_//squidex.io/assets"; A.CallTo(() => assetStore.GeneratePublicUrl(fullName)) .Returns(url); var result = sut.GeneratePublicUrl(appId, assetId, assetFileVersion, suffix); Assert.Equal(url, result); }