public MockDependPropertyInjection(IMockDependSimple mock) { Console.WriteLine("This is constructor Injection"); mock.Say(); Console.WriteLine("---------------------------------------"); }
public void Test([DependencyInjection] IMockDependSimple mock) { mock.Say(); }