Пример #1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }

            if (o == null || !(o is SetOfImplementations))
            {
                return(false);
            }

            SetOfImplementations that = (SetOfImplementations)o;

            if (that.theInstances.Count != this.theInstances.Count)
            {
                return(false);
            }

            if (!Utilities.Utilities.Equals <ISetInterface>(theInstances, that.theInstances))
            {
                return(false);
            }

            return(true);
        }
Пример #2
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,
                           //ListOfBaseTypes listOfBaseTypes, //TODO: to recover once Avro NuGet support it
                           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;
 }