public void AfterConfiguration_CanResolvePropertySettingsRepositoryFactoryMethods()
        {
            var containerBuilder = new ContainerBuilder();
            var bootstrapper = new PageTypeBuilder.DefaultBootstrapper();
            bootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();

            var exception = Record.Exception(() => container.Resolve<Func<IPropertySettingsRepository>>());

            Assert.Null(exception);
        }
        public void AfterConfiguration_CanResolvePageTypeSynchronizer()
        {
            var containerBuilder = new ContainerBuilder();
            var bootstrapper = new PageTypeBuilder.DefaultBootstrapper();
            bootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();

            var exception = Record.Exception(() => container.Resolve<PageTypeSynchronizer>());

            Assert.Null(exception);
        }
Esempio n. 3
0
        public void AfterConfiguration_CanResolvePropertySettingsRepositoryFactoryMethods()
        {
            var containerBuilder = new ContainerBuilder();
            var bootstrapper     = new PageTypeBuilder.DefaultBootstrapper();

            bootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();

            var exception = Record.Exception(() => container.Resolve <Func <IPropertySettingsRepository> >());

            Assert.Null(exception);
        }
Esempio n. 4
0
        public void AfterConfiguration_CanResolvePageTypeSynchronizer()
        {
            var containerBuilder = new ContainerBuilder();
            var bootstrapper     = new PageTypeBuilder.DefaultBootstrapper();

            bootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();

            var exception = Record.Exception(() => container.Resolve <PageTypeSynchronizer>());

            Assert.Null(exception);
        }