From a2e87bf2100f32082cc58ee9413d5a9819938883 Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Thu, 14 Nov 2024 11:11:55 +0700 Subject: [PATCH] move MultiStringOverride.cs into auto faker helpers --- backend/FwLite/FwLiteProjectSync.Tests/EntrySyncTests.cs | 1 - backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs | 2 +- backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.cs | 2 +- backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs | 2 +- .../{FakerOverrids => AutoFakerHelpers}/MultiStringOverride.cs | 2 +- .../WritingSystemIdOverride.cs | 2 +- backend/FwLite/MiniLcm.Tests/MiniLcmTestBase.cs | 1 - 7 files changed, 5 insertions(+), 7 deletions(-) rename backend/FwLite/MiniLcm.Tests/{FakerOverrids => AutoFakerHelpers}/MultiStringOverride.cs (94%) rename backend/FwLite/MiniLcm.Tests/{FakerOverrids => AutoFakerHelpers}/WritingSystemIdOverride.cs (91%) diff --git a/backend/FwLite/FwLiteProjectSync.Tests/EntrySyncTests.cs b/backend/FwLite/FwLiteProjectSync.Tests/EntrySyncTests.cs index 3ed5ffa0e..523f73526 100644 --- a/backend/FwLite/FwLiteProjectSync.Tests/EntrySyncTests.cs +++ b/backend/FwLite/FwLiteProjectSync.Tests/EntrySyncTests.cs @@ -3,7 +3,6 @@ using MiniLcm.Models; using MiniLcm.SyncHelpers; using MiniLcm.Tests.AutoFakerHelpers; -using MiniLcm.Tests.FakerOverrids; using Soenneker.Utils.AutoBogus; namespace FwLiteProjectSync.Tests; diff --git a/backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs b/backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs index d6d7f23ab..9d1feffa2 100644 --- a/backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs +++ b/backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs @@ -1,7 +1,7 @@ using FwLiteProjectSync.Tests.Fixtures; using MiniLcm.Models; using MiniLcm.SyncHelpers; -using MiniLcm.Tests.FakerOverrids; +using MiniLcm.Tests.AutoFakerHelpers; using Soenneker.Utils.AutoBogus; using Soenneker.Utils.AutoBogus.Config; diff --git a/backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.cs b/backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.cs index 78279e85a..c08c3812c 100644 --- a/backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.cs +++ b/backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.cs @@ -7,7 +7,7 @@ using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using MiniLcm.Tests.FakerOverrids; +using MiniLcm.Tests.AutoFakerHelpers; using SIL.Harmony.Changes; using SIL.Harmony.Entities; using Soenneker.Utils.AutoBogus; diff --git a/backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs b/backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs index 051c56a92..395615d46 100644 --- a/backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs +++ b/backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs @@ -1,6 +1,6 @@ using SIL.Harmony.Entities; using LcmCrdt.Objects; -using MiniLcm.Tests.FakerOverrids; +using MiniLcm.Tests.AutoFakerHelpers; using SIL.Harmony; using Soenneker.Utils.AutoBogus; using Soenneker.Utils.AutoBogus.Config; diff --git a/backend/FwLite/MiniLcm.Tests/FakerOverrids/MultiStringOverride.cs b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/MultiStringOverride.cs similarity index 94% rename from backend/FwLite/MiniLcm.Tests/FakerOverrids/MultiStringOverride.cs rename to backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/MultiStringOverride.cs index ff671c869..678a6a153 100644 --- a/backend/FwLite/MiniLcm.Tests/FakerOverrids/MultiStringOverride.cs +++ b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/MultiStringOverride.cs @@ -2,7 +2,7 @@ using Soenneker.Utils.AutoBogus.Context; using Soenneker.Utils.AutoBogus.Override; -namespace MiniLcm.Tests.FakerOverrids; +namespace MiniLcm.Tests.AutoFakerHelpers; public class MultiStringOverride(string[]? validWs = null): AutoFakerOverride { diff --git a/backend/FwLite/MiniLcm.Tests/FakerOverrids/WritingSystemIdOverride.cs b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/WritingSystemIdOverride.cs similarity index 91% rename from backend/FwLite/MiniLcm.Tests/FakerOverrids/WritingSystemIdOverride.cs rename to backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/WritingSystemIdOverride.cs index 5c5d2a7b9..2901dc454 100644 --- a/backend/FwLite/MiniLcm.Tests/FakerOverrids/WritingSystemIdOverride.cs +++ b/backend/FwLite/MiniLcm.Tests/AutoFakerHelpers/WritingSystemIdOverride.cs @@ -2,7 +2,7 @@ using Soenneker.Utils.AutoBogus.Context; using Soenneker.Utils.AutoBogus.Override; -namespace MiniLcm.Tests.FakerOverrids; +namespace MiniLcm.Tests.AutoFakerHelpers; public class WritingSystemIdOverride: AutoFakerOverride { diff --git a/backend/FwLite/MiniLcm.Tests/MiniLcmTestBase.cs b/backend/FwLite/MiniLcm.Tests/MiniLcmTestBase.cs index 04bdc89f0..f4ee8de99 100644 --- a/backend/FwLite/MiniLcm.Tests/MiniLcmTestBase.cs +++ b/backend/FwLite/MiniLcm.Tests/MiniLcmTestBase.cs @@ -1,5 +1,4 @@ using MiniLcm.Tests.AutoFakerHelpers; -using MiniLcm.Tests.FakerOverrids; using Soenneker.Utils.AutoBogus; namespace MiniLcm.Tests;