Skip to content

Commit c8de47f

Browse files
committed
wip
1 parent aa8dc2a commit c8de47f

7 files changed

Lines changed: 124 additions & 0 deletions

File tree

Ephemerally.sln

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{EBD6
3434
EndProject
3535
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ephemerally.Xunit", "src\Ephemerally.Xunit\Ephemerally.Xunit.csproj", "{BF2CF962-181D-4A63-B61E-32F3130B84DF}"
3636
EndProject
37+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ephemerally.SqlServer", "src\Ephemerally.SqlServer\Ephemerally.SqlServer.csproj", "{1060CB27-40DD-41BF-88BE-B59041DEABD5}"
38+
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ephemerally.SqlServer.Tests", "tests\Ephemerally.SqlServer.Tests\Ephemerally.SqlServer.Tests.csproj", "{42709DAF-E903-4BA9-8987-B88316E9CA04}"
40+
EndProject
41+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ephemerally.SqlServer.Xunit", "src\Ephemerally.SqlServer.Xunit\Ephemerally.SqlServer.Xunit.csproj", "{60D2366F-A220-4682-9249-647641E9D3B3}"
42+
EndProject
3743
Global
3844
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3945
Debug|Any CPU = Debug|Any CPU
@@ -80,6 +86,18 @@ Global
8086
{BF2CF962-181D-4A63-B61E-32F3130B84DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
8187
{BF2CF962-181D-4A63-B61E-32F3130B84DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
8288
{BF2CF962-181D-4A63-B61E-32F3130B84DF}.Release|Any CPU.Build.0 = Release|Any CPU
89+
{1060CB27-40DD-41BF-88BE-B59041DEABD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
90+
{1060CB27-40DD-41BF-88BE-B59041DEABD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
91+
{1060CB27-40DD-41BF-88BE-B59041DEABD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
92+
{1060CB27-40DD-41BF-88BE-B59041DEABD5}.Release|Any CPU.Build.0 = Release|Any CPU
93+
{42709DAF-E903-4BA9-8987-B88316E9CA04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
94+
{42709DAF-E903-4BA9-8987-B88316E9CA04}.Debug|Any CPU.Build.0 = Debug|Any CPU
95+
{42709DAF-E903-4BA9-8987-B88316E9CA04}.Release|Any CPU.ActiveCfg = Release|Any CPU
96+
{42709DAF-E903-4BA9-8987-B88316E9CA04}.Release|Any CPU.Build.0 = Release|Any CPU
97+
{60D2366F-A220-4682-9249-647641E9D3B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
98+
{60D2366F-A220-4682-9249-647641E9D3B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
99+
{60D2366F-A220-4682-9249-647641E9D3B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
100+
{60D2366F-A220-4682-9249-647641E9D3B3}.Release|Any CPU.Build.0 = Release|Any CPU
83101
EndGlobalSection
84102
GlobalSection(SolutionProperties) = preSolution
85103
HideSolutionNode = FALSE
@@ -95,6 +113,9 @@ Global
95113
{E186436A-12C9-4140-A279-19227CFF8533} = {AF30F58C-5E9B-4406-9E13-114C46F4E410}
96114
{5A30E9EA-AB80-4E08-A81F-99CE329B34B8} = {F9102409-3748-4DA6-9D7B-784339508244}
97115
{BF2CF962-181D-4A63-B61E-32F3130B84DF} = {F9102409-3748-4DA6-9D7B-784339508244}
116+
{1060CB27-40DD-41BF-88BE-B59041DEABD5} = {F9102409-3748-4DA6-9D7B-784339508244}
117+
{42709DAF-E903-4BA9-8987-B88316E9CA04} = {AF30F58C-5E9B-4406-9E13-114C46F4E410}
118+
{60D2366F-A220-4682-9249-647641E9D3B3} = {F9102409-3748-4DA6-9D7B-784339508244}
98119
EndGlobalSection
99120
GlobalSection(ExtensibilityGlobals) = postSolution
100121
SolutionGuid = {5690E595-5302-46D7-AA86-89D55117B068}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
namespace Ephemerally.SqlServer.Xunit;
2+
3+
public class Class1 { }
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>disable</Nullable>
7+
<LangVersion>13</LangVersion>
8+
<IsTestProject>false</IsTestProject>
9+
<IsPackable>true</IsPackable>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<ProjectReference Include="..\Ephemerally.SqlServer\Ephemerally.SqlServer.csproj" />
14+
<ProjectReference Include="..\Ephemerally.Xunit\Ephemerally.Xunit.csproj" />
15+
</ItemGroup>
16+
17+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using Microsoft.Data.SqlClient;
2+
3+
namespace Ephemerally.SqlServer;
4+
5+
public class SqlDatabaseEphemeral : Ephemeral<SqlDatabase>
6+
{
7+
public SqlDatabaseEphemeral(
8+
SqlDatabase value,
9+
Func<SqlDatabase, string> getFullName,
10+
EphemeralOptions options)
11+
: base(value, getFullName, options) { }
12+
13+
protected override Task CleanupSelfAsync() => throw new NotImplementedException();
14+
15+
protected override Task CleanupAllAsync() => throw new NotImplementedException();
16+
}
17+
18+
public class SqlDatabase
19+
{
20+
public string Name { get; init; }
21+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>disable</Nullable>
7+
<LangVersion>13</LangVersion>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\Ephemerally\Ephemerally.csproj" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
20+
<PackageReference Include="minver" Version="4.3.0">
21+
<PrivateAssets>all</PrivateAssets>
22+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
23+
</PackageReference>
24+
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
25+
</ItemGroup>
26+
27+
</Project>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
namespace Ephemerally.SqlServer.Tests;
2+
3+
public class Class1 { }
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>disable</Nullable>
7+
<LangVersion>latest</LangVersion>
8+
9+
<IsPackable>false</IsPackable>
10+
<IsTestProject>true</IsTestProject>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<PackageReference Include="coverlet.collector" Version="6.0.0" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16+
<PackageReference Include="shouldly" Version="4.2.1" />
17+
<PackageReference Include="testcontainers" Version="3.7.0" />
18+
<PackageReference Include="xunit" Version="2.5.3" />
19+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
20+
</ItemGroup>
21+
22+
<ItemGroup>
23+
<ProjectReference Include="..\..\src\Ephemerally.SqlServer.Xunit\Ephemerally.SqlServer.Xunit.csproj" />
24+
<ProjectReference Include="..\..\src\Ephemerally.SqlServer\Ephemerally.SqlServer.csproj" />
25+
<ProjectReference Include="..\Ephemerally.Tests\Ephemerally.Tests.csproj" />
26+
</ItemGroup>
27+
28+
<ItemGroup>
29+
<Using Include="Xunit"/>
30+
</ItemGroup>
31+
32+
</Project>

0 commit comments

Comments
 (0)