コード例 #1
0
 public MockDependPropertyInjection(IMockDependSimple mock)
 {
     Console.WriteLine("This is constructor Injection");
     mock.Say();
     Console.WriteLine("---------------------------------------");
 }
コード例 #2
0
 public void Test([DependencyInjection] IMockDependSimple mock)
 {
     mock.Say();
 }
コード例 #3
0
 public MockDependPropertyInjection(IMockDependSimple mock)
 {
     Console.WriteLine("This is constructor Injection");
     mock.Say();
     Console.WriteLine("---------------------------------------");
 }