Browse Source

added azure blob storage asset store tests

pull/76/head
pushrbx 9 years ago
parent
commit
0674bb4bdf
  1. 27
      tests/Squidex.Infrastructure.Tests/Assets/AzureBlobAssetStoreTests.cs
  2. 1
      tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj

27
tests/Squidex.Infrastructure.Tests/Assets/AzureBlobAssetStoreTests.cs

@ -0,0 +1,27 @@
// ==========================================================================
// AzureBlobAssetStoreTests.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using Squidex.Infrastructure.Azure.Storage;
namespace Squidex.Infrastructure.Assets
{
public class AzureBlobAssetStoreTests : AssetStoreTests<AzureBlobAssetStore>
{
public override AzureBlobAssetStore CreateStore()
{
var azureStorageAccount =
new StorageAccountManager("UseDevelopmentStorage=true");
return new AzureBlobAssetStore(azureStorageAccount, "squidex-test-container"); ;
}
public override void Dispose()
{
}
}
}

1
tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj

@ -5,6 +5,7 @@
<RootNamespace>Squidex.Infrastructure</RootNamespace> <RootNamespace>Squidex.Infrastructure</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\src\Squidex.Infrastructure.Azure\Squidex.Infrastructure.Azure.csproj" />
<ProjectReference Include="..\..\src\Squidex.Infrastructure.GoogleCloud\Squidex.Infrastructure.GoogleCloud.csproj" /> <ProjectReference Include="..\..\src\Squidex.Infrastructure.GoogleCloud\Squidex.Infrastructure.GoogleCloud.csproj" />
<ProjectReference Include="..\..\src\Squidex.Infrastructure\Squidex.Infrastructure.csproj" /> <ProjectReference Include="..\..\src\Squidex.Infrastructure\Squidex.Infrastructure.csproj" />
</ItemGroup> </ItemGroup>

Loading…
Cancel
Save