Beispiel #1
0
        public static void OpenScreen <TScreen>(this IScreenCollection <IScreen> screenCollection)
            where TScreen : IScreen
        {
            var presenter = ServiceLocator.Current.GetInstance <TScreen>();

            screenCollection.OpenScreen(presenter);
        }
Beispiel #2
0
 public ScreenConductor(IEventAggregator events, IScreenCollection screens, IScreenObjectLocator screenObjectLocator, IMessageCreator messageBox, IShellService shellService, IScreenFactory factory)
 {
     _events              = events;
     _screens             = screens;
     _screenObjectLocator = screenObjectLocator;
     _messageBox          = messageBox;
     _shellService        = shellService;
     _factory             = factory;
 }
 public void SetUp()
 {
     screen = new StubScreen();
     collection = MockRepository.GenerateMock<IScreenCollection>();
     tab = new StoryTellerTabItem(screen, new NulloEventAggregator()).Item;
 }
Beispiel #4
0
 public ScreenConductor(IScreenCollection screenCollection, IScreenFactory screenFactory, IScreenObjectRegistry screenObjectRegistry)
 {
     _screens = screenCollection;
     _screenFactory = screenFactory;
     _screenObjectRegistry = screenObjectRegistry;
 }
Beispiel #5
0
 public ScreenFinder(IScreenCollection screens)
 {
     _screens = screens;
 }
Beispiel #6
0
 public ScreenConductor(IScreenCollection screenCollection, IScreenFactory screenFactory, IScreenObjectRegistry screenObjectRegistry)
 {
     _screens              = screenCollection;
     _screenFactory        = screenFactory;
     _screenObjectRegistry = screenObjectRegistry;
 }
Beispiel #7
0
 public ScreenFinder(IScreenCollection screens)
 {
     _screens = screens;
 }
Beispiel #8
0
 public override void Given()
 {
     screenCollection     = Moq.Mock <IScreenCollection>();
     screenObjectRegistry = Moq.Mock <IScreenObjectRegistry>();
     screenFactory        = Moq.Mock <IScreenFactory>();
 }