private static void SimpleTest <T>(IMvxNavigationCache cache, string key, T value, T expected)
        {
            Assert.True(cache.AddValue(key, value));
            var addedValue = cache.GetValueOrDefault <T>(key);

            Assert.Equal(expected, addedValue);
        }
示例#2
0
 public TrackingNavigationService(
     IMvxNavigationCache navigationCache,
     IMvxViewModelLoader viewModelLoader,
     IAnalyticsService analyticsService) : base(navigationCache, viewModelLoader)
 {
     this.analyticsService = analyticsService;
 }
示例#3
0
 public NavigationService(
     IMvxNavigationCache navigationCache,
     IMvxViewModelLoader viewModelLoader,
     IAnalyticsService analyticsService,
     Platform platform) : base(navigationCache, viewModelLoader)
 {
     this.analyticsService = analyticsService;
     this.platform         = platform;
 }
示例#4
0
 public RestlyNavigationService(
     IMvxNavigationCache navigationCache,
     IMvxViewModelLoader viewModelLoader)
     : base(navigationCache, viewModelLoader)
 {
 }