Exemplo n.º 1
0
        public void CanSetupContainer()
        {
            //arrange
            var container = new Container();
            var registrar = new StructuremapRegistrar();

            //act
            registrar.ConfigureDependencies(container, false);

            //assert
            container.AssertConfigurationIsValid();
        }
Exemplo n.º 2
0
        public void CanSetupContainer()
        {
            //arrange
            var container = new Container();
            var registrar = new StructuremapRegistrar();

            //act
            registrar.ConfigureDependencies(container, false);

            //assert
            container.AssertConfigurationIsValid();
        }
Exemplo n.º 3
0
        public void CanSetupContainer()
        {
            //arrange
            var container = new Container();
            var registrar = new StructuremapRegistrar();

            //act
            registrar.ConfigureDependencies(container);

            //assert
            container.AssertConfigurationIsValid();
            //Log.Info(container.WhatDoIHave());
        }
Exemplo n.º 4
0
        public void CanBootstrapTheIocProject()
        {
            //arrange
            var container = new Container();
            var registrar = new StructuremapRegistrar();
            var logger = new Logger<BootStrappingTest>();

            //act
            var bootstrapper = new Bootstrap()
                .WithContainer(container)
                .WithRegistrar(registrar)
                .WithLogger(logger)
                .Start();

            bootstrapper.Dispose();

            //assert
            container.AssertConfigurationIsValid();
        }
Exemplo n.º 5
0
        public void CanBootstrapTheIocProject()
        {
            //arrange
            var container = new Container();
            var registrar = new StructuremapRegistrar();
            var logger    = new Logger <BootStrappingTest>();

            //act
            var bootstrapper = new Bootstrap()
                               .WithContainer(container)
                               .WithRegistrar(registrar)
                               .WithLogger(logger)
                               .Start();

            bootstrapper.Dispose();

            //assert
            container.AssertConfigurationIsValid();
        }
Exemplo n.º 6
0
 public void ConfigureDependencies()
 {
     StructuremapRegistrar.ConfigureDependencies(Container, AdditionalRegistries);
 }