This commit is contained in:
Janus Knudsen 2025-03-03 17:40:16 +01:00
parent 71576a4b1f
commit 73a1f11e99
21 changed files with 236 additions and 228 deletions

View file

@ -4,7 +4,7 @@ using System.Data;
using Newtonsoft.Json;
using Autofac;
using Shouldly;
using PlanTempus.Database.Core.ConnectionFactory;
using PlanTempus.Core.Sql.ConnectionFactory;
namespace PlanTempus.Tests.ConfigurationSystem;

View file

@ -5,6 +5,7 @@ using Insight.Database;
using PlanTempus.Core.Configurations;
using PlanTempus.Core.Configurations.JsonConfigProvider;
using PlanTempus.Core.Configurations.SmartConfigProvider;
using PlanTempus.Core.Sql.ConnectionFactory;
namespace PlanTempus.Tests.ConfigurationTests
{
@ -66,7 +67,7 @@ namespace PlanTempus.Tests.ConfigurationTests
[TestMethod]
public void TryGetActiveConfigurations()
{
var connFactory = Container.Resolve<Database.Core.ConnectionFactory.IDbConnectionFactory>();
var connFactory = Container.Resolve<IDbConnectionFactory>();
const string sql = @"
SELECT id, ""key"", value, label, content_type,

View file

@ -2,12 +2,12 @@ using Autofac;
using System.Data;
using Insight.Database;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PlanTempus.Database.Core.Sql;
using PlanTempus.Database.Core.ConnectionFactory;
using PlanTempus.Core.Sql.ConnectionFactory;
using PlanTempus.Core.Sql;
namespace PlanTempus.Tests
{
[TestClass]
[TestClass]
public class PostgresTests : TestFixture
{
IDbConnectionFactory _connFactory;