public RootClass(IService1 service1, IService2 service2, string stringProperty, int intProperty) { this.service1 = service1; this.service2 = service2; StringProperty = stringProperty; IntProperty = intProperty; }
public WithService(IService2 service) { Service = service; }
public With3Parameters(IService1 service1, IService2 service2) { }
public Client(IService1 service, IService2 service2) { _service1 = service; _service2 = service2; }
public Service3DependsOnService1And2(IService1 s1, IService2 s2) { }
public Service1Singleton(IService2 service2) { Service2 = service2; }
public Service1(IService2 service2) { _service2 = service2; }
public ServiceWithTwoConstructorDependencies(IService service1, IService2 service2) { this.service1 = service1; this.service2 = service2; }
public Service1(IService2 otherService) { _service1Id = Guid.NewGuid().ToString(); _otherService = otherService; }
private WithPrivateConstructor(IService1 service1, IService2 service2) { }
public Class2([Dependency] IService foo = null, [Dependency] IService2 bar = null) { }
public ServiceWithDependencyAndOptionalOtherServiceParameter(IService service, IService2 optional = null) { Optional = optional; }
public ValuesController(IService1 service1, IService2 service2) { _svc1 = service1; _svc2 = service2; }
public Task <string> TestString(IService2 service, string value) { return(service.TestString(value)); }
public void Go4(IService service, IService2 service2) { }
public ServiceToTestOverrides(SomeEnum someEnum, IService2 service, Argument argument) { _someEnum = someEnum; _service = service; _argument = argument; }
public SingleDiAnnotatedManager(IService1 service1) { Service1 = service1; Service2 = null; }
public Service2Decorator(IService2 service) { this.DecoratedService = service; }
public RootClass(IService1 service1, IService2 service2) : this(service1, service2, "DEFAULT", 1976) { }
public ClassWithDependencies([Dependency] IService service = null, [Dependency] IService2 service2 = null) { Service = service ?? throw new ArgumentNullException(nameof(service)); Service2 = service2 ?? throw new ArgumentNullException(nameof(service2)); }
public WithServiceArray(IService2[] services) { Services = services; }
public With3Parameters(IService1 service1, IService2 service2) { }
public Service2Decorator(IService2 service) { this.DecoratedService = service; }
private ServiceInjection2(IService2 service2) => _service2 = service2;
public void CantCreateInterfaceTargetedProxyWithoutInterface() { IService2 service = (IService2) generator.CreateInterfaceProxyWithTargetInterface( typeof(Service2), new Service2()); }
public ExampleTwoWithOneArgument(IService2 s2) { _s2 = s2; }
public Manager([Dependency] IService service = null, [Dependency] IService2 service2 = null) { Service = service; Service2 = service2; }
public ExampleTwoWithSeparateArgument2(IService1 s1, IService2 s2) { _s1 = s1; _s2 = s2; }
public Service3(IService1 service1, IService2 service2) { Service1 = service1; Service2 = service2; }
public ExampleTwoArguments(IService1 s1, IService2 s2) { _s1 = s1; _s2 = s2; }
public void Go3(Message2 input, IService service, IService2 service2) { }
private ExampleTwoArgumentsPrivate(IService1 s1, IService2 s2) { _s1 = s1; _s2 = s2; }
public HomeController(IService1 service1, IService2 service2, IService3 service3) { this.service1 = service1; this.service2 = service2; this.service3 = service3; }
public Service2Decorator(IService2 service) { Service = service ?? throw new ArgumentNullException(nameof(service)); }
public SingleDiAnnotatedManager(IService1 service1, IService2 service2) { Service1 = service1; Service2 = service2; }
public RootClass(IService1 service1, IService2 service2) : this(service1, service2, "DEFAULT", 1976) { }
public Service4(IService2 service1) { Service2 = service1; }
public Service4(IService2 service1) { Service2 = service1; }
public ServiceWithDependencyAndOptionalOtherServiceParameter(IService service, IService2 optional = null) { Optional = optional; }
public Controller(IService1 s1, IService2 s2, IService3 s3) { S1 = s1; S2 = s2; S3 = s3; }
public HomeController(IService1 service1, IService2 service2) { _service1 = service1; _service2 = service2; }
public ProductionController(IService1 service1, IService2 service2) { }
public Task<string> TestString(IService2 service, string value) { return service.TestString(value); }
public DependencyInjectionTestViewModel(IService1 service1, IService2 service2) { this.service1 = service1; this.service2 = service2; }
public WithService(IService2 service) { Service = service; }
// ReSharper disable once UnusedParameter.Local public Service1(IService2 service2) { }
public ClassDependingOnClassWithOneDependency(IService2 service2) { this.service2 = service2; }
public Service3(IService1 service1, IService2 service2) { Service1 = service1; Service2 = service2; }