Skip to content

Commit

Permalink
- v10.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eben-roux committed Feb 13, 2018
1 parent a23340f commit 662ae5c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Shuttle.Core.Data
=================
# Shuttle.Core.Data

Provides a thin abstraction over ADO.NET.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
using System;
using NUnit.Framework;

namespace Shuttle.Core.Data.Tests
{
Expand All @@ -10,13 +11,15 @@ public void Should_be_able_to_get_configuration()
{
var provider = new ConnectionConfigurationProvider();

Assert.That(provider.Get("not-defined"), Is.Null);
Assert.That(() => provider.Get("not-defined"), Throws.TypeOf<InvalidOperationException>());

#if (!NETCOREAPP2_0 && !NETSTANDARD2_0)
var configuration = provider.Get("Shuttle");

Assert.That(configuration.Name, Is.EqualTo("Shuttle"));
Assert.That(configuration.ProviderName, Is.EqualTo("System.Data.SqlClient"));
Assert.That(configuration.ConnectionString, Is.EqualTo("Data Source=.\\sqlexpress;Initial Catalog=Shuttle;Integrated Security=SSPI"));
#endif
}
}
}
2 changes: 1 addition & 1 deletion Shuttle.Core.Data.Tests/Shuttle.Core.Data.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="Moq" Version="4.8.0" />
<PackageReference Include="Moq" Version="4.8.1" />
<PackageReference Include="NUnit" Version="3.9.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.1" Condition="'$(TargetFramework)' == 'netcoreapp2.0'" />
Expand Down
12 changes: 9 additions & 3 deletions Shuttle.Core.Data.sln
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2010
VisualStudioVersion = 15.0.27130.2020
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shuttle.Core.Data", "Shuttle.Core.Data\Shuttle.Core.Data.csproj", "{F7AF306E-A389-427E-B3A1-89FF9016A13F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shuttle.Core.Data", "Shuttle.Core.Data\Shuttle.Core.Data.csproj", "{F7AF306E-A389-427E-B3A1-89FF9016A13F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shuttle.Core.Data.Tests", "Shuttle.Core.Data.Tests\Shuttle.Core.Data.Tests.csproj", "{48AFB050-D62A-4642-9182-139E68BCA383}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shuttle.Core.Data.Tests", "Shuttle.Core.Data.Tests\Shuttle.Core.Data.Tests.csproj", "{48AFB050-D62A-4642-9182-139E68BCA383}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{04014C6E-E6F6-444D-AA9B-EE7A88343784}"
ProjectSection(SolutionItems) = preProject
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
1 change: 1 addition & 0 deletions Shuttle.Core.Data/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public void Register(IComponentRegistry registry)
{
Guard.AgainstNull(registry, nameof(registry));

registry.AttemptRegister<IConnectionConfigurationProvider, ConnectionConfigurationProvider>();
registry.AttemptRegister<IDatabaseContextCache, ThreadStaticDatabaseContextCache>();
registry.AttemptRegister<IDatabaseContextFactory, DatabaseContextFactory>();
registry.AttemptRegister<IDbConnectionFactory, DbConnectionFactory>();
Expand Down
2 changes: 1 addition & 1 deletion Shuttle.Core.Data/Shuttle.Core.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<ItemGroup>
<PackageReference Include="Shuttle.Core.Configuration" Version="10.0.0" />
<PackageReference Include="Shuttle.Core.Container" Version="10.0.4" />
<PackageReference Include="Shuttle.Core.Container" Version="10.0.5" />
<PackageReference Include="Shuttle.Core.Logging" Version="10.0.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.1" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0'" />
</ItemGroup>
Expand Down

0 comments on commit 662ae5c

Please sign in to comment.