Exemplo n.º 1
0
 public RootImplementation([Parameter(typeof(TestConfigurationModuleBuilder.RequiredString))] string requiredString,
                           [Parameter(typeof(TestConfigurationModuleBuilder.OptionalString))] string optionalString,
                           [Parameter(typeof(TestConfigurationModuleBuilder.NamedParameterInteger))] int anInt,
                           [Parameter(typeof(TestConfigurationModuleBuilder.NamedParameterDouble))] double aDouble,
                           IAnInterface anInterface,
                           InjectableClass injectableClass,
                           SetOfImplementations setOfImplementations,
                           SetOfBaseTypes setOfBaseTypes,
                           CyclicDependency cyclicDependency)
 {
     this.requiredString       = requiredString;
     this.optionalString       = optionalString;
     this.anInterface          = anInterface;
     this.anInt                = anInt;
     this.aDouble              = aDouble;
     this.injectableClass      = injectableClass;
     this.setOfImplementations = setOfImplementations;
     this.setOfBaseTypes       = setOfBaseTypes;
     //// this.listOfBaseTypes = listOfBaseTypes;  // TODO: to recover once Avro NuGet support it
     this.cyclicDependency = cyclicDependency;
 }
Exemplo n.º 2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }

            if (o == null)
            {
                return(false);
            }

            InjectableClass that = (InjectableClass)o;

            if (magicNumber != that.magicNumber)
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 3
0
 public RootImplementation([Parameter(typeof(TestConfigurationModuleBuilder.RequiredString))] string requiredString,
                           [Parameter(typeof(TestConfigurationModuleBuilder.OptionalString))] string optionalString,
                           [Parameter(typeof(TestConfigurationModuleBuilder.NamedParameterInteger))] int anInt,
                           [Parameter(typeof(TestConfigurationModuleBuilder.NamedParameterDouble))] double aDouble,
                           IAnInterface anInterface,
                           InjectableClass injectableClass,
                           SetOfImplementations setOfImplementations,
                           SetOfBaseTypes setOfBaseTypes,
                           CyclicDependency cyclicDependency)
 {
                         this.requiredString = requiredString;
                         this.optionalString = optionalString;
                         this.anInterface = anInterface;
                         this.anInt = anInt;
                         this.aDouble = aDouble;
                         this.injectableClass = injectableClass;
                         this.setOfImplementations = setOfImplementations;
                         this.setOfBaseTypes = setOfBaseTypes;
                         //// this.listOfBaseTypes = listOfBaseTypes;  // TODO: to recover once Avro NuGet support it
                         this.cyclicDependency = cyclicDependency;
 }