public void TestInitialize()
 {
     _dialogTest             = new DialogTest();
     _applicationContextTest = new ApplicationContextTest();
     _syndicationHelperTest  = new SyndicationHelperTest();
     _storageUtilityTest     = new StorageUtilityTest();
     _target = new BlogDataSource(
         _storageUtilityTest,
         _applicationContextTest,
         _dialogTest,
         _syndicationHelperTest);
 }
Beispiel #2
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used when the application is launched to open a specific file, to display
        /// search results, and so forth.
        /// </summary>
        /// <param name="args">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs args)
        {
            // Do not repeat app initialization when already running, just ensure that
            // the window is active
            if (args.PreviousExecutionState == ApplicationExecutionState.Running)
            {
                Window.Current.Activate();
                return;
            }

            DataSource = new BlogDataSource();

            var splashScreen = args.SplashScreen;
            var splash       = new SplashPage(splashScreen, args);

            splashScreen.Dismissed += splash.DismissedEventHandler;
            Window.Current.Content  = splash;
            Window.Current.Activate();
        }