mirror of https://github.com/abpframework/abp.git
2 changed files with 32 additions and 1 deletions
@ -0,0 +1,31 @@ |
|||||
|
using Shouldly; |
||||
|
using Volo.Abp.BlobStoring.Fakes; |
||||
|
using Volo.Abp.BlobStoring.TestObjects; |
||||
|
using Volo.Abp.DynamicProxy; |
||||
|
using Xunit; |
||||
|
|
||||
|
namespace Volo.Abp.BlobStoring |
||||
|
{ |
||||
|
public class BlobProviderSelector_Tests : AbpBlobStoringTestBase |
||||
|
{ |
||||
|
private readonly IBlobProviderSelector _selector; |
||||
|
|
||||
|
public BlobProviderSelector_Tests() |
||||
|
{ |
||||
|
_selector = GetRequiredService<IBlobProviderSelector>(); |
||||
|
} |
||||
|
|
||||
|
[Fact] |
||||
|
public void Should_Select_Default_Provider_If_Not_Configured() |
||||
|
{ |
||||
|
_selector.Get<TestContainer3>().ShouldBeAssignableTo<FakeBlobProvider1>(); |
||||
|
} |
||||
|
|
||||
|
[Fact] |
||||
|
public void Should_Select_Configured_Provider() |
||||
|
{ |
||||
|
_selector.Get<TestContainer1>().ShouldBeAssignableTo<FakeBlobProvider1>(); |
||||
|
_selector.Get<TestContainer2>().ShouldBeAssignableTo<FakeBlobProvider2>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue