Exemplo n.º 1
0
        private void OnRegisterGlobalDependencies(object sender, RegisterGlobalDependenciesEventArgs e)
        {
            var container = e.ObjectContainer;

            if (!container.IsRegistered <IMyDependency>())
            {
                var dependency = new MyDependency();
                container.RegisterInstanceAs <IMyDependency>(dependency);
            }
        }
Exemplo n.º 2
0
 private void RuntimePluginEventsOnRegisterGlobalDependencies(object sender, RegisterGlobalDependenciesEventArgs e)
 {
     e.ObjectContainer.RegisterTypeAs <NUnitRuntimeProvider, IUnitTestRuntimeProvider>("nunit");
 }
Exemplo n.º 3
0
        private static void RuntimePluginEvents_RegisterGlobalDependencies(object sender, RegisterGlobalDependenciesEventArgs e)
        {
            var runtimeProvider = new NUnitRuntimeProvider();

            e.ObjectContainer.RegisterInstanceAs <IUnitTestRuntimeProvider>(runtimeProvider, Extensions.Name);
        }
Exemplo n.º 4
0
        public void RegisterDependencies(object sender, RegisterGlobalDependenciesEventArgs eventArgs)
        {
            var runtimeProvider = new NUnitRuntimeProvider();

            eventArgs.ObjectContainer.RegisterInstanceAs <IUnitTestRuntimeProvider>(runtimeProvider, "BBTest");
        }
 private static void RuntimePluginEvents_RegisterGlobalDependencies(object sender,
                                                                    RegisterGlobalDependenciesEventArgs e)
 {
     e.ObjectContainer.RegisterInstanceAs <IUnitTestRuntimeProvider>(new NUnitRuntimeProvider(),
                                                                     "Unickq.SpecFlow.Selenium");
 }