public void TestInitialize() { solutionDocumentController = Container.GetExportedValue<SolutionDocumentController>(); Container.GetExportedValue<FileController>().Initialize(); OnTestInitialize(); }
public ApplicationController(CompositionContainer container, IEnvironmentService environmentService, IPresentationService presentationService, ShellService shellService, FileController fileController) { InitializeCultures(); presentationService.InitializeCultures(); this.environmentService = environmentService; this.fileController = fileController; this.solutionDocumentController = container.GetExportedValue<SolutionDocumentController>(); this.shellViewModel = container.GetExportedValue<ShellViewModel>(); this.mainViewModel = container.GetExportedValue<MainViewModel>(); this.startViewModel = container.GetExportedValue<StartViewModel>(); shellService.ShellView = shellViewModel.View; this.shellViewModel.Closing += ShellViewModelClosing; this.exitCommand = new DelegateCommand(Close); }