Commit 65817854 authored by Helgi Hafþórsson's avatar Helgi Hafþórsson
Browse files

Updated packages, removed test warnings, made readme clearer

parent 55b99d0c
Pipeline #14283314 passed with stage
......@@ -60,10 +60,10 @@ namespace SampleNetCore
using (var connection = dataEnvironment.ConnectionProvider.OpenConnection())
{
// Use the IDbConnection to create the IDbCommand
using (var command = connection.CreateCommand("select id, name from customers where type = :type"))
using (var command = connection.CreateCommand("select id, name from customers where order_type = :type"))
{
// Extension method to add a parameter
command.AddParameter("type", "good");
command.AddParameter("order_type", "good");
using (var reader = command.ExecuteReader())
{
while (reader.Read())
......
......@@ -23,7 +23,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.4.0" />
<PackageReference Include="moq" Version="4.7.145" />
<PackageReference Include="System.Reflection" Version="4.3.0" />
</ItemGroup>
</Project>
......@@ -168,7 +168,7 @@ namespace Marsonsoft.Database.Tests
{
var dataEnvironment = provider.GetByConnectionStringName(connectionName);
var connection = dataEnvironment.ConnectionProvider.CreateConnection();
Assert.True(connection.GetType().FullName.StartsWith(namespacePrefix));
Assert.StartsWith(namespacePrefix, connection.GetType().FullName);
}
[Fact]
......
......@@ -11,12 +11,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="Moq" Version="4.7.145" />
<PackageReference Include="MySql.Data" Version="6.10.4" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>
<ItemGroup>
......
......@@ -36,7 +36,7 @@ namespace Marsonsoft.Database.Tests
var provider = DataEnvironmentProviderFactory.Create(config);
var dataEnvironment = provider.GetDefault();
Assert.True(dataEnvironment.DbProviderFactory.GetType().FullName.StartsWith("MySql."));
Assert.StartsWith("MySql.", dataEnvironment.DbProviderFactory.GetType().FullName);
}
[Fact]
......@@ -46,7 +46,7 @@ namespace Marsonsoft.Database.Tests
var provider = DataEnvironmentProviderFactory.Create(config);
var dataEnvironment = provider.GetDefault();
var connection = dataEnvironment.ConnectionProvider.CreateConnection();
Assert.True(connection.GetType().FullName.StartsWith("MySql."));
Assert.StartsWith("MySql.", connection.GetType().FullName);
}
}
......
......@@ -39,7 +39,7 @@ namespace Marsonsoft.Database.Tests
var provider = DataEnvironmentProviderFactory.Create(config);
var dataEnvironment = provider.GetDefault();
Assert.True(dataEnvironment.DbProviderFactory.GetType().FullName.StartsWith("System.Data.SqlClient."));
Assert.StartsWith("System.Data.SqlClient.", dataEnvironment.DbProviderFactory.GetType().FullName);
}
[Fact]
......@@ -49,7 +49,7 @@ namespace Marsonsoft.Database.Tests
var provider = DataEnvironmentProviderFactory.Create(config);
var dataEnvironment = provider.GetDefault();
var connection = dataEnvironment.ConnectionProvider.CreateConnection();
Assert.True(connection.GetType().FullName.StartsWith("System.Data.SqlClient."));
Assert.StartsWith("System.Data.SqlClient.", connection.GetType().FullName);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment