public void Initialize() { Container = CompositionHelper.GetContainer(); CompositionHelper.ComposeContainerWithDefaults(Container); CompositionHelper.ComposeMessageServiceImplementation(Container, NSubstitute.Substitute.For <IMessageService>()); CompositionHelper.ComposeFileEnumeratorImplementation(Container, NSubstitute.Substitute.For <IFileEnumerator>()); CompositionHelper.ComposeImportImagesViewImplementation(Container, NSubstitute.Substitute.For <IImportImagesView>()); ApplicationController = Container.GetExportedValue <IApplicationController>(); }
public void Initialize() { Container = CompositionHelper.GetContainer(); CompositionHelper.ComposeContainerWithDefaults(Container); CompositionHelper.ComposeMessageServiceImplementation(Container, GetMessageService()); CompositionHelper.ComposeFileEnumeratorImplementation(Container, new FileEnumeratorHasMoreThanMaxNumberOfFiles()); CompositionHelper.ComposeImportImagesViewImplementation(Container, NSubstitute.Substitute.For <IImportImagesView>()); ApplicationController = Container.GetExportedValue <IApplicationController>(); ApplicationController.Initialize(); ApplicationController.Run(); TestDataHelper.MakeDriveValid(ApplicationController.CurrentSelectDriveViewModel.Model); TestNavigationHelper.NavigateFromSelectDriveToSelectPatient(ApplicationController); }