Beispiel #1
0
        private void SetupTestCaseSpecificWorkspace()
        {
            IWorkspaceBuilder workspaceBuilder = this.GetWorkspaceBuilder();

            if (workspaceBuilder != null)
            {
                this.testCaseDependencyInjectionContainer.InjectDependenciesInto(workspaceBuilder);
                Workspace workspace = workspaceBuilder.BuildWorkspace(null);

                this.testCaseDependencyInjectionContainer.RegisterInstance(workspace);
            }
        }
Beispiel #2
0
        private void SetupDefaultWorkspace()
        {
            IWorkspaceBuilder workspaceBuilder = this.GetWorkspaceBuilder();

            if (workspaceBuilder != null)
            {
                this.dependencyInjector.InjectDependenciesInto(workspaceBuilder);
                Workspace workspace = workspaceBuilder.BuildWorkspace(null);
                for (Type t = workspace.GetType(); t != typeof(object); t = t.GetBaseType())
                {
                    this.moduleDependencyInjectionContainer.RegisterInstance(t, workspace);
                }
            }
        }