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

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

            var generatorProvider = new BlueTestGeneratorProvider(codeDomHelper);

            container.RegisterInstanceAs<IUnitTestGeneratorProvider>(generatorProvider, "BBTest");
        }
Пример #2
0
        public void RegisterDependencies(object sender, RegisterDependenciesEventArgs eventArgs)
        {
            var projectSettings = eventArgs.ObjectContainer.Resolve <ProjectSettings>();

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

            var generatorProvider = new BlueTestGeneratorProvider(codeDomHelper);

            eventArgs.ObjectContainer.RegisterInstanceAs <IUnitTestGeneratorProvider>(generatorProvider, "BBTest");
        }