public void RegisterDependencies(BoDi.ObjectContainer container)
        {
            var projectSettings = container.Resolve<ProjectSettings>();

            var codeDomHelper = container.Resolve<CodeDomHelper>(projectSettings.ProjectPlatformSettings.Language);

            var generatorProvider = new SeleniumNUnitTestGeneratorProvider(codeDomHelper, projectSettings);
            
            container.RegisterInstanceAs<IUnitTestGeneratorProvider>(generatorProvider, "SeleniumNUnit");
        }
        public void RegisterDependencies(BoDi.ObjectContainer container)
        {
            var runtimeProvider = new NUnitRuntimeProvider();

            container.RegisterInstanceAs<IUnitTestRuntimeProvider>(runtimeProvider, "BBTest");
        }
Exemplo n.º 3
0
            public override void RegisterGlobalContainerDefaults(BoDi.ObjectContainer container)
            {
                base.RegisterGlobalContainerDefaults(container);

                var pluginLoaderStub = new Mock<IRuntimePluginLoader>();
                pluginLoaderStub.Setup(pl => pl.LoadPlugin(It.IsAny<PluginDescriptor>())).Returns(pluginToReturn);
                container.RegisterInstanceAs<IRuntimePluginLoader>(pluginLoaderStub.Object);
            }