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