Skip to content

Commit a26d7bd

Browse files
committed
Added StatementTestBase as a base class for the statement tests.
1 parent 1ea93f7 commit a26d7bd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
</Choose>
6767
<ItemGroup>
6868
<Compile Include="Properties\AssemblyInfo.cs" />
69+
<Compile Include="Statement\StatementTestBase.cs" />
6970
</ItemGroup>
7071
<ItemGroup>
7172
<Folder Include="Builder\" />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Moq;
2+
using SQLite.CodeFirst.Statement;
3+
4+
namespace SQLite.CodeFirst.Test.Statement
5+
{
6+
public abstract class StatementTestBase
7+
{
8+
protected Mock<IStatement> CreateStatementMock(string createStatementReturnValue)
9+
{
10+
var statementMock = new Mock<IStatement>();
11+
statementMock.Setup(s => s.CreateStatement()).Returns(createStatementReturnValue);
12+
return statementMock;
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)