mirror of
https://github.com/Stone-Red-Code/DynamicInjector.git
synced 2026-09-04 09:06:06 +02:00
Add project files.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user