added tests: BlobContainer_Injection_Tests

pull/4105/head
Halil İbrahim Kalkan 6 years ago
parent f5caaaaa85
commit d5b9e0ad14

@ -18,7 +18,7 @@ namespace Volo.Abp.BlobStoring
_factory = GetRequiredService<IBlobContainerFactory>();
_fakeProviders = GetRequiredService<FakeProviders>();
}
[Fact]
public async Task Should_Create_Containers_With_Configured_Providers()
{

@ -0,0 +1,22 @@
using Shouldly;
using Volo.Abp.BlobStoring.TestObjects;
using Xunit;
namespace Volo.Abp.BlobStoring
{
public class BlobContainer_Injection_Tests : AbpBlobStoringTestBase
{
[Fact]
public void Test()
{
GetRequiredService<IBlobContainer<TestContainer1>>()
.ShouldBeOfType<TypedBlobContainerWrapper<TestContainer1>>();
GetRequiredService<IBlobContainer<TestContainer2>>()
.ShouldBeOfType<TypedBlobContainerWrapper<TestContainer2>>();
GetRequiredService<IBlobContainer<TestContainer3>>()
.ShouldBeOfType<TypedBlobContainerWrapper<TestContainer3>>();
}
}
}
Loading…
Cancel
Save