Skip to content

Commit e13865c

Browse files
committed
Move integration tests
1 parent fa37bc1 commit e13865c

File tree

7 files changed

+34
-25
lines changed

7 files changed

+34
-25
lines changed

EntityFramework.Reverse.POCO.Generator/EntityFramework.Reverse.POCO.Generator.csproj

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@
6666
<Reference Include="System.Xml" />
6767
</ItemGroup>
6868
<ItemGroup>
69-
<Compile Include="TestDatabase_NoDataAnnotation.cs">
70-
<DependentUpon>TestDatabase_NoDataAnnotation.tt</DependentUpon>
71-
<AutoGen>True</AutoGen>
72-
<DesignTime>True</DesignTime>
73-
</Compile>
74-
<Compile Include="TestDatabase_DataAnnotation.cs">
75-
<DependentUpon>TestDatabase_DataAnnotation.tt</DependentUpon>
76-
<AutoGen>True</AutoGen>
77-
<DesignTime>True</DesignTime>
78-
</Compile>
7969
<Compile Include="Database NorthwindSqlCe40.cs">
8070
<AutoGen>True</AutoGen>
8171
<DesignTime>True</DesignTime>
@@ -111,15 +101,6 @@
111101
<Content Include="App_Data\NorthwindSqlCe40.sdf">
112102
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
113103
</Content>
114-
<None Include="TestDatabase_NoDataAnnotation.tt">
115-
<Generator>TextTemplatingFileGenerator</Generator>
116-
<LastGenOutput>TestDatabase_NoDataAnnotation.cs</LastGenOutput>
117-
</None>
118-
<Content Include="TestDatabase.sql" />
119-
<None Include="TestDatabase_DataAnnotation.tt">
120-
<Generator>TextTemplatingFileGenerator</Generator>
121-
<LastGenOutput>TestDatabase_DataAnnotation.cs</LastGenOutput>
122-
</None>
123104
</ItemGroup>
124105
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
125106
<Target Name="BeforeBuild">

EntityFramework.Reverse.POCO.Generator/TestDatabase.sql renamed to Tester/TestDatabase.sql

File renamed without changes.

EntityFramework.Reverse.POCO.Generator/TestDatabase_DataAnnotation.cs renamed to Tester/TestDatabase_DataAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Do not make changes directly to this file - edit the template instead.
88
//
99
// The following connection settings were used to generate this file:
10-
// Configuration file: "EntityFramework.Reverse.POCO.Generator\App.config"
10+
// Configuration file: "Tester\App.config"
1111
// Connection String Name: "TestDatabase"
1212
// Connection String: "Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator"
1313
// ------------------------------------------------------------------------------------------------

EntityFramework.Reverse.POCO.Generator/TestDatabase_DataAnnotation.tt renamed to Tester/TestDatabase_DataAnnotation.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#@ include file="EF.Reverse.POCO.Core.ttinclude" #>
1+
<#@ include file="..\EntityFramework.Reverse.POCO.Generator\EF.Reverse.POCO.Core.ttinclude" #>
22
<#
33
// v2.32.0
44
// Please make changes to the settings below.
@@ -517,6 +517,6 @@
517517
if (tables.Count > 0 || storedProcs.Count > 0)
518518
{
519519
#>
520-
<#@ include file="EF.Reverse.POCO.ttinclude" #>
520+
<#@ include file="..\EntityFramework.Reverse.POCO.Generator\EF.Reverse.POCO.ttinclude" #>
521521
<#@ import namespace="System.Xml.Schema" #>
522522
<# } #>

EntityFramework.Reverse.POCO.Generator/TestDatabase_NoDataAnnotation.cs renamed to Tester/TestDatabase_NoDataAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Do not make changes directly to this file - edit the template instead.
88
//
99
// The following connection settings were used to generate this file:
10-
// Configuration file: "EntityFramework.Reverse.POCO.Generator\App.config"
10+
// Configuration file: "Tester\App.config"
1111
// Connection String Name: "TestDatabase"
1212
// Connection String: "Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator"
1313
// ------------------------------------------------------------------------------------------------

EntityFramework.Reverse.POCO.Generator/TestDatabase_NoDataAnnotation.tt renamed to Tester/TestDatabase_NoDataAnnotation.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#@ include file="EF.Reverse.POCO.Core.ttinclude" #>
1+
<#@ include file="..\EntityFramework.Reverse.POCO.Generator\EF.Reverse.POCO.Core.ttinclude" #>
22
<#
33
// v2.32.0
44
// Please make changes to the settings below.
@@ -517,6 +517,6 @@
517517
if (tables.Count > 0 || storedProcs.Count > 0)
518518
{
519519
#>
520-
<#@ include file="EF.Reverse.POCO.ttinclude" #>
520+
<#@ include file="..\EntityFramework.Reverse.POCO.Generator\EF.Reverse.POCO.ttinclude" #>
521521
<#@ import namespace="System.Xml.Schema" #>
522522
<# } #>

Tester/Tester.Integration.csproj

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@
6666
<Compile Include="StoredProcedureAsyncTests.cs" />
6767
<Compile Include="CustomersRepositoryTests.cs" />
6868
<Compile Include="Properties\AssemblyInfo.cs" />
69+
<Compile Include="TestDatabase_DataAnnotation.cs">
70+
<DependentUpon>TestDatabase_DataAnnotation.tt</DependentUpon>
71+
<AutoGen>True</AutoGen>
72+
<DesignTime>True</DesignTime>
73+
</Compile>
74+
<Compile Include="TestDatabase_NoDataAnnotation.cs">
75+
<DependentUpon>TestDatabase_NoDataAnnotation.tt</DependentUpon>
76+
<AutoGen>True</AutoGen>
77+
<DesignTime>True</DesignTime>
78+
</Compile>
6979
<Compile Include="TvfTests.cs" />
7080
</ItemGroup>
7181
<ItemGroup>
@@ -84,6 +94,24 @@
8494
</None>
8595
<None Include="packages.config" />
8696
</ItemGroup>
97+
<ItemGroup>
98+
<None Include="TestDatabase_DataAnnotation.tt">
99+
<Generator>TextTemplatingFileGenerator</Generator>
100+
<LastGenOutput>TestDatabase_DataAnnotation.cs</LastGenOutput>
101+
</None>
102+
</ItemGroup>
103+
<ItemGroup>
104+
<None Include="TestDatabase_NoDataAnnotation.tt">
105+
<Generator>TextTemplatingFileGenerator</Generator>
106+
<LastGenOutput>TestDatabase_NoDataAnnotation.cs</LastGenOutput>
107+
</None>
108+
</ItemGroup>
109+
<ItemGroup>
110+
<Content Include="TestDatabase.sql" />
111+
</ItemGroup>
112+
<ItemGroup>
113+
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
114+
</ItemGroup>
87115
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
88116
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
89117
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)