public BaseBindingGeneratorTests()
        {
            this.kernelMock = new KernelMock();
            var bindingGeneratorFactory = new BindingGeneratorFactory(null);

            this.testee = bindingGeneratorFactory.CreateBaseBindingGenerator();
        }
        public SingleInterfaceBindingGeneratorTests()
        {
            this.kernelMock = new KernelMock();
            this.bindableInterfaceSelectorMock = new Mock <IBindableTypeSelector>();
            var bindingGeneratorFactory = new BindingGeneratorFactory(this.bindableInterfaceSelectorMock.Object);

            this.testee = bindingGeneratorFactory.CreateSingleInterfaceBindingGenerator();
        }
 public SelectorBindingGeneratorTests()
 {
     this.kernelMock = new KernelMock();
     this.bindableInterfaceSelectorMock = new Mock <IBindableTypeSelector>();
     this.multiBindingCreatorMock       = new Mock <IBindingCreator>();
     this.bindingGeneratorFactory       = new TestBindingGeneratorFactory(
         this.bindableInterfaceSelectorMock.Object,
         this.multiBindingCreatorMock.Object);
 }
Ejemplo n.º 4
0
        public DefaultInterfaceBindingGeneratorTests()
        {
            this.kernelMock = new KernelMock();
            this.bindableInterfaceSelectorMock = new Mock <IBindableTypeSelector>();
            this.multiBindingCreatorMock       = new Mock <IBindingCreator>();
            var bindingGeneratorFactory = new TestBindingGeneratorFactory(
                this.bindableInterfaceSelectorMock.Object,
                this.multiBindingCreatorMock.Object);

            this.testee = bindingGeneratorFactory.CreateDefaultInterfaceBindingGenerator();
        }