Add project files.

This commit is contained in:
Stone_Red
2021-12-17 20:43:17 +01:00
parent e1af7ef0b8
commit 070ec5d9fe
11 changed files with 397 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using DynamicInjector;
namespace DynamicInjector_Test;
internal class TestClass
{
private readonly IFirstTestService testService;
[Inject]
private SecondTestService? SecondTestService { get; set; }
public TestClass(IFirstTestService yes)
{
testService = yes;
}
public void Test()
{
testService.Print();
SecondTestService?.Output();
}
public int SecondTest(SecondTestService secondTestService)
{
secondTestService.Output();
return 100;
}
}