public static void OpenScreen <TScreen>(this IScreenCollection <IScreen> screenCollection) where TScreen : IScreen { var presenter = ServiceLocator.Current.GetInstance <TScreen>(); screenCollection.OpenScreen(presenter); }
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; }
public ScreenConductor(IScreenCollection screenCollection, IScreenFactory screenFactory, IScreenObjectRegistry screenObjectRegistry) { _screens = screenCollection; _screenFactory = screenFactory; _screenObjectRegistry = screenObjectRegistry; }
public ScreenFinder(IScreenCollection screens) { _screens = screens; }
public override void Given() { screenCollection = Moq.Mock <IScreenCollection>(); screenObjectRegistry = Moq.Mock <IScreenObjectRegistry>(); screenFactory = Moq.Mock <IScreenFactory>(); }