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> >();
        }
Exemplo 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> >();
        }
Exemplo 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> >();
        }
Exemplo 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> >();
        }
Exemplo 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> >();
        }
Exemplo 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> >();
        }
Exemplo n.º 14
0
 public ConverterIntTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateTargetImplConvertTargetImplHelperTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateConvertFromStrategyHelperTests()
 {
     container = TestIocContainer.Initialize();
 }
 public CreateTargetConvertTargetHelperFactoryTests()
 {
     container = TestIocContainer.Initialize();
 }