コード例 #1
0
        public void EnsureSampleDataServiceReturnsContentGridData()
        {
            var dataService = new SampleDataService();
            var actual      = dataService.GetContentGridData();

            Assert.AreNotEqual(0, actual.Count);
        }
コード例 #2
0
        public void EnsureSampleDataServiceReturnsContentGridData()
        {
            var dataService = new SampleDataService();
            var actual      = dataService.GetContentGridData();

            Assert.NotEmpty(actual);
        }
        public void Initialize(long orderId)
        {
            // TODO WTS: Replace this with your actual data
            var data = SampleDataService.GetContentGridData();

            Item = data.First(i => i.OrderId == orderId);
        }
コード例 #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.Parameter is long orderId)
     {
         var data = SampleDataService.GetContentGridData();
         Item = data.First(i => i.OrderId == orderId);
     }
 }
コード例 #5
0
        public void Initialize(long orderId)
        {
            var data = SampleDataService.GetContentGridData();

            Item = data.First(i => i.OrderId == orderId);
        }