diff --git a/Rdmp.Core.Tests/Curation/Integration/QueryBuildingTests/AggregateBuilderTests/AggregateDataBasedTests.cs b/Rdmp.Core.Tests/Curation/Integration/QueryBuildingTests/AggregateBuilderTests/AggregateDataBasedTests.cs index ae3486e6c1..285e22ecb4 100644 --- a/Rdmp.Core.Tests/Curation/Integration/QueryBuildingTests/AggregateBuilderTests/AggregateDataBasedTests.cs +++ b/Rdmp.Core.Tests/Curation/Integration/QueryBuildingTests/AggregateBuilderTests/AggregateDataBasedTests.cs @@ -111,7 +111,7 @@ private static DataTable GetResultForBuilder(AggregateBuilder builder, Discovere private static void AddWHEREToBuilder_CategoryIsTOrNumberGreaterThan42(AggregateBuilder builder, DatabaseType type) { - var syntaxHelper = QuerySyntaxHelperFactory.Create(type); + var syntaxHelper = new QuerySyntaxHelperFactory().Create(type); var declaration = syntaxHelper.GetParameterDeclaration("@category", new DatabaseTypeRequest(typeof(string), 1)); var repo = new MemoryCatalogueRepository(); diff --git a/Tests.Common/Scenarios/TestsRequiringA.cs b/Tests.Common/Scenarios/TestsRequiringA.cs index a337056a7e..e2b6dff354 100644 --- a/Tests.Common/Scenarios/TestsRequiringA.cs +++ b/Tests.Common/Scenarios/TestsRequiringA.cs @@ -43,7 +43,7 @@ protected DiscoveredTable CreateDataset(DiscoveredDatabase db, int people, in protected DiscoveredTable CreateDataset(DiscoveredDatabase db, PersonCollection people, int rows, Random r) where T : IDataGenerator { - var instance = DataGeneratorFactory.Create(r); + var instance = new DataGeneratorFactory().Create(r); var dt = instance.GetDataTable(people, rows);