-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/SmartSql.Test.Unit/DyRepository/AllPrimitiveRepositoryTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using SmartSql.Test.Repositories; | ||
using Xunit; | ||
|
||
namespace SmartSql.Test.Unit.DyRepository | ||
{ | ||
public class AllPrimitiveRepositoryTest : DyRepositoryTest | ||
{ | ||
[Fact] | ||
public void Build() | ||
{ | ||
var smartSqlBuilder = new SmartSqlBuilder().UseXmlConfig().Build(); | ||
var repositoryType = RepositoryBuilder.Build(typeof(IAllPrimitiveRepository), smartSqlBuilder.SmartSqlConfig); | ||
Assert.NotNull(repositoryType); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using SmartSql.DyRepository; | ||
|
||
namespace SmartSql.Test.Unit.DyRepository | ||
{ | ||
public class DyRepositoryTest | ||
{ | ||
protected IRepositoryBuilder RepositoryBuilder { get; set; } | ||
protected IRepositoryFactory RepositoryFactory { get; set; } | ||
public DyRepositoryTest() | ||
{ | ||
RepositoryBuilder = new EmitRepositoryBuilder(null, null, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); | ||
RepositoryFactory = new RepositoryFactory(RepositoryBuilder, Microsoft.Extensions.Logging.Abstractions.NullLogger.Instance); | ||
} | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
src/SmartSql.Test.Unit/DyRepository/IAllPrimitiveRepository.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters