mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
766 B
26 lines
766 B
using Shouldly;
|
|
using Volo.Docs.Documents;
|
|
using Volo.Docs.FileSystem.Documents;
|
|
using Volo.Docs.GitHub.Documents;
|
|
using Xunit;
|
|
|
|
namespace Volo.Docs
|
|
{
|
|
public class DocumentSourceFactory_Tests : DocsDomainTestBase
|
|
{
|
|
private readonly IDocumentSourceFactory _documentSourceFactory;
|
|
|
|
public DocumentSourceFactory_Tests()
|
|
{
|
|
_documentSourceFactory = GetRequiredService<IDocumentSourceFactory>();
|
|
}
|
|
|
|
[Fact]
|
|
public void Create()
|
|
{
|
|
_documentSourceFactory.Create(GithubDocumentSource.Type).GetType().ShouldBe(typeof(GithubDocumentSource));
|
|
_documentSourceFactory.Create(FileSystemDocumentSource.Type).GetType().ShouldBe(typeof(FileSystemDocumentSource));
|
|
}
|
|
}
|
|
}
|