コード例 #1
0
 public void CheckPlatformServices()
 {
     DefaultApp.Initialize(AppPlatform);
     CheckSingleResolved <IViewProvider>("UI service");
     CheckSingleResolved <IBackgroundService>("Background tasks");
     CheckResolved <IStorageService>();
     CheckResolved <ISettingsService>();
     CheckResolved <INotificationService>();
     CheckResolved <ILauncher>();
     CheckAllResolved <IDispatcher>("Dispatchers");
 }
コード例 #2
0
        public void CheckDefaultServices()
        {
            DefaultApp.Initialize(AppPlatform);
            CheckSingleResolved <INavigationHistory>("Default navigation history");
            CheckSingleResolved <INavigationService>("Default navigation service");
            CheckSingleResolved <ICommandRouter>("Default command router");
            var package = CheckSingleResolved <IPackageInfo>("TestingApp package info");

            Assert.AreEqual(DefaultApp.PackageInfo, package, "Returned package info is not equivalent to the app's package info.");
            CheckResolved <ILifetimeScope>("DI container");
        }