mirror of
https://github.com/Stone-Red-Code/DynamicInjector.git
synced 2026-09-04 09:06:06 +02:00
27 lines
506 B
C#
27 lines
506 B
C#
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()
|
|
{
|
|
SecondTestService?.Output();
|
|
}
|
|
|
|
public int SecondTest(SecondTestService secondTestService)
|
|
{
|
|
secondTestService.Output();
|
|
return 100;
|
|
}
|
|
} |