Browse Source

added tests: BlobContainer_Injection_Tests

pull/4105/head
Halil İbrahim Kalkan 6 years ago
parent
commit
d5b9e0ad14
  1. 2
      framework/test/Volo.Abp.BlobStoring.Tests/Volo/Abp/BlobStoring/BlobContainerFactory_Tests.cs
  2. 22
      framework/test/Volo.Abp.BlobStoring.Tests/Volo/Abp/BlobStoring/BlobContainer_Injection_Tests.cs

2
framework/test/Volo.Abp.BlobStoring.Tests/Volo/Abp/BlobStoring/BlobContainerFactory_Tests.cs

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

22
framework/test/Volo.Abp.BlobStoring.Tests/Volo/Abp/BlobStoring/BlobContainer_Injection_Tests.cs

@ -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