Ejemplo n.º 1
0
 public ClassWithMixedDependencies(
     IInterface interfaceDependency,
     AbstractBaseClass abstractBaseClassDependency,
     InterfaceImplementation interfaceImplementation,
     BaseClassImplementation baseClassImplementation)
 {
     InterfaceDependency =
         interfaceDependency ?? throw new ArgumentNullException(nameof(interfaceDependency));
     AbstractBaseClassDependency =
         abstractBaseClassDependency
         ?? throw new ArgumentNullException(nameof(abstractBaseClassDependency));
     InterfaceImplementation =
         interfaceImplementation ?? throw new ArgumentNullException(nameof(interfaceImplementation));
     BaseClassImplementation =
         baseClassImplementation ?? throw new ArgumentNullException(nameof(baseClassImplementation));
 }
Ejemplo n.º 2
0
 public PocoWithAbstractBaseClass(AbstractBaseClass child)
 {
     Child = child;
 }
 public ClassWithInternalAbstractArgument(AbstractBaseClass foo)
 {
 }
Ejemplo n.º 4
0
 public ClassWithAbstractBaseClassDependencies(AbstractBaseClass abstractBaseClassDependency)
 {
     AbstractBaseClassDependency =
         abstractBaseClassDependency
         ?? throw new ArgumentNullException(nameof(abstractBaseClassDependency));
 }