public CopyOperationPostProcessingUsingParamsIntTests()
        {
            var container = TestIocContainer.Initialize();

            container.Bind <ICopyRegistrations <ITestClass> >().To <TestClassCopyRegistrations>();
            this.copy = container.Get <ICopy <ITestClass> >();
        }
        public CopyOperationPostProcessingWithoutUsingParamsIntTest()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <ITestClass> >().To <TestClassCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <ITestClass> >();
        }
        public CopyOperationInlineValueProcessingTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <TestClass> >().To <TestClassCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <TestClass> >();
        }
        public ComparerWithObjectsAndValueAttributesTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICompareRegistrations <TestClass, ITestCompareIntention> >().To <TestClassCompareRegistrations>();

            this.testCandidate = kernel.Get <IComparer <TestClass, ITestCompareIntention> >();
        }
Esempio n. 5
0
        public CopyOperationRegisterCreateFromFactoryTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <TestClass> >().To <TestClassCopyRegistrations>();
            kernel.Bind <ITestFactory>().To <TestFactory>();

            this.testCandidate = kernel.Get <ICopy <TestClass> >();
        }
        public CopyOperationSubCopyIntTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <TestClassChild> >().To <TestClassChildCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <TestClassParent> >().To <TestClassParentCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <TestClassChild> >();
        }
        public CopyOperationCreateToManyWithReverseRelationIntTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <IParentTestClass> >().To <TestClassCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <IChildTestClass> >().To <ChildTestClassCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <IParentTestClass> >();
        }
Esempio n. 8
0
        public ToManyComparerTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICompareRegistrations <TestClass, ITestCompareIntention> >().To <TestClassCompareRegistrations>();
            kernel.Bind <ICompareRegistrations <TestClassistOfChildrenItem, ITestCompareIntention> >().To <TestClassistOfChildrenItecompareRegistrations>();

            this.comparer = kernel.Get <IComparer <TestClass, ITestCompareIntention> >();
        }
        public SubComparerUsingComparerTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICompareRegistrations <TestClassChild, ITestCompareIntention> >().To <TestClassChildCompareRegistrations>();
            kernel.Bind <ICompareRegistrations <TestClassParent, ITestCompareIntention> >().To <TestClassParentCompareRegistrations>();

            parentCompare      = kernel.Get <IComparer <TestClassParent, ITestCompareIntention> >();
            this.testCandidate = kernel.Get <IComparer <TestClassChild, ITestCompareIntention> >();
        }
Esempio n. 10
0
        public CopierIntegrationTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <IParentTestClass> >().To <TestClassCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <IChildTestClass> >().To <ChildTestClassCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <IChildTestClass2> >().To <ChildTestClass2CopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <IParentTestClass> >();
        }
        public CopyOperationCrossReferenceProcessingIntTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICopyRegistrations <TestClass> >().To <TestClassCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <TestClassChild> >().To <TestClassChildCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <TestClassCrossReferencedChild> >().To <TestClassCrossReferencedChildCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <TestClass> >();
        }
Esempio n. 12
0
        public ComparerWithObjectAttributeWithDistinguishedComparerIntTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <ICompareRegistrations <TestClass, ITestCompareIntention> >().To <TestClassCompareRegistrations>();
            kernel.Bind <ICompareRegistrations <TestAttribute, ITestCompareIntention> >().To <TestAttributeCompareRegistrations>();

            distinguishedComparer = kernel.Get <IComparer <TestAttribute, ITestCompareIntention> >();
            this.testCandidate    = kernel.Get <IComparer <TestClass, ITestCompareIntention> >();
        }
Esempio n. 13
0
        public CopyOperationCreateToManyFromGenericStrategyWithReverseRelationIntTests()
        {
            var kernel = TestIocContainer.Initialize();

            kernel.Bind <IGenericStrategyProvider <TestStrategy, IChildTestClass> >().To <TestFactory>();
            kernel.Bind <ITestStrategy>().To <TestStrategy>();
            kernel.Bind <ICopyRegistrations <IParentTestClass> >().To <TestClassCopyRegistrations>();
            kernel.Bind <ICopyRegistrations <IChildTestClass> >().To <ChildTestClassCopyRegistrations>();

            this.testCandidate = kernel.Get <ICopy <IParentTestClass> >();
        }
Esempio n. 14
0
 public ConverterIntTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateTargetImplConvertTargetImplHelperTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateConvertFromStrategyHelperTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateTargetConvertTargetHelperFactoryTests()
 {
     container = TestIocContainer.Initialize();
 }