Exemplo n.º 1
0
        public void Initialize()
        {
            Container = CompositionHelper.GetContainer();
            CompositionHelper.ComposeContainerWithDefaults(Container);
            CompositionHelper.ComposeMessageServiceImplementation(Container, GetMessageService());
            CompositionHelper.ComposeFileEnumeratorImplementation(Container, new FileEnumeratorHasMoreThanMaxNumberOfFiles());
            CompositionHelper.ComposeImportImagesViewImplementation(Container, GetImportImagesView());

            ApplicationController = Container.GetExportedValue <IApplicationController>();
            ApplicationController.Initialize();
            ApplicationController.Run();

            TestDataHelper.MakeDriveValid(ApplicationController.CurrentSelectDriveViewModel.Model);
            TestNavigationHelper.NavigateFromSelectDriveToSelectPatient(ApplicationController);

            TestDataHelper.MakePatientValid(ApplicationController.CurrentSelectPatientViewModel.Model);
            TestNavigationHelper.NavigateFromSelectPatientToSelectImages(ApplicationController);

            TestDataHelper.MakeImageSelectionValid(ApplicationController.CurrentSelectImagesViewModel.Model);
            TestNavigationHelper.NavigateFromSelectImagesToImportImages(ApplicationController);
        }
Exemplo n.º 2
0
 void ThenUserCanProgressToNextStep()
 {
     TestNavigationHelper.NavigateFromSelectImagesToImportImages(ApplicationController);
     Assert.IsTrue(!_messageService.ShowErrorWasCalled);
 }