From 610c47bc15011d3c886d19a15867153b5cb4545e Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Wed, 3 Dec 2025 16:05:01 +0100 Subject: [PATCH] - add more test cases with nullable and generic parameters --- .../Samples/Factories/ISampleClassFactory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs index 37356a4..fbf29b7 100644 --- a/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs +++ b/Debug.LightweightIocContainer.FactoryGenerator/Samples/Factories/ISampleClassFactory.cs @@ -12,5 +12,10 @@ public interface ISampleClassFactory T Create(U param1, V param2) where T : ISampleClass where U : class, new() where V : struct; Task CreateAsync(U parameter) where T : ISampleClass where U : class; + ISampleClass Create(Task task) where T : Task; + + Task Create(ISampleClass? sampleClass) where T : class, ISampleClass; + ISampleClass? Create(int id); + void ClearMultitonInstance() where T : ISampleClass; } \ No newline at end of file