From 40e026042800ade7c05bba79d89512308f502612 Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Wed, 3 Dec 2025 14:06:51 +0100 Subject: [PATCH] - move files to folders to test correct generation of usings --- .../SampleInstaller.cs | 3 +++ .../Factories/ISampleClassFactory.cs} | 9 ++------- .../Samples/Interfaces/ISampleClass.cs | 3 +++ .../Samples/SampleClass.cs | 9 +++++++++ 4 files changed, 17 insertions(+), 7 deletions(-) rename Debug.LightweightIocContainer.FactoryGenerator/{SampleClass.cs => Samples/Factories/ISampleClassFactory.cs} (65%) create mode 100644 Debug.LightweightIocContainer.FactoryGenerator/Samples/Interfaces/ISampleClass.cs create mode 100644 Debug.LightweightIocContainer.FactoryGenerator/Samples/SampleClass.cs diff --git a/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs b/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs index 3f63134..dd14b13 100644 --- a/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs +++ b/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs @@ -2,6 +2,9 @@ // Created: 2025-12-01 // Copyright(c) 2025 SimonG. All Rights Reserved. +using Debug.LightweightIocContainer.FactoryGenerator.Samples; +using Debug.LightweightIocContainer.FactoryGenerator.Samples.Factories; +using Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces; using LightweightIocContainer.FactoryGenerator; using LightweightIocContainer.Interfaces.Installers; using LightweightIocContainer.Interfaces.Registrations; diff --git a/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs similarity index 65% rename from Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs rename to Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs index 3575aff..37356a4 100644 --- a/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs +++ b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs @@ -1,11 +1,6 @@ -// Author: Simon.Gockner -// Created: 2025-12-01 -// Copyright(c) 2025 SimonG. All Rights Reserved. +using Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces; -namespace Debug.LightweightIocContainer.FactoryGenerator; - -public class SampleClass : ISampleClass; -public interface ISampleClass; +namespace Debug.LightweightIocContainer.FactoryGenerator.Samples.Factories; public interface ISampleClassFactory { diff --git a/Debug.LightweightIocContainer.FactoryGenerator/Samples/Interfaces/ISampleClass.cs b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Interfaces/ISampleClass.cs new file mode 100644 index 0000000..c9c7c62 --- /dev/null +++ b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Interfaces/ISampleClass.cs @@ -0,0 +1,3 @@ +namespace Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces; + +public interface ISampleClass; \ No newline at end of file diff --git a/Debug.LightweightIocContainer.FactoryGenerator/Samples/SampleClass.cs b/Debug.LightweightIocContainer.FactoryGenerator/Samples/SampleClass.cs new file mode 100644 index 0000000..c2b1429 --- /dev/null +++ b/Debug.LightweightIocContainer.FactoryGenerator/Samples/SampleClass.cs @@ -0,0 +1,9 @@ +// Author: Simon.Gockner +// Created: 2025-12-01 +// Copyright(c) 2025 SimonG. All Rights Reserved. + +using Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces; + +namespace Debug.LightweightIocContainer.FactoryGenerator.Samples; + +public class SampleClass : ISampleClass; \ No newline at end of file