Esempio n. 1
0
        public async Task EnsureSampleDataServiceReturnsContentGridDataAsync()
        {
            var dataService = new SampleDataService();
            var actual      = await dataService.GetContentGridDataAsync();

            Assert.NotEmpty(actual);
        }
        public async Task EnsureSampleDataServiceReturnsContentGridDataAsync()
        {
            var dataService = new SampleDataService();
            var actual      = await dataService.GetContentGridDataAsync();

            Assert.AreNotEqual(0, actual.Count());
        }
        public async Task InitializeAsync(long orderID)
        {
            // TODO WTS: Replace this with your actual data
            var data = await SampleDataService.GetContentGridDataAsync();

            Item = data.First(i => i.OrderID == orderID);
        }
Esempio n. 4
0
        public async Task EnsureSampleDataServiceReturnsContentGridDataAsync()
        {
            var sampleDataService = new SampleDataService();

            var data = await sampleDataService.GetContentGridDataAsync();

            Assert.IsTrue(data.Any());
        }
Esempio n. 5
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            if (e.Parameter is long orderID)
            {
                var data = await SampleDataService.GetContentGridDataAsync();

                Item = data.First(i => i.OrderID == orderID);
            }
        }
Esempio n. 6
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            this.RegisterElementForConnectedAnimation("animationKeyContentGridView", itemHero);
            if (e.Parameter is long orderID)
            {
                var data = await SampleDataService.GetContentGridDataAsync();

                Item = data.First(i => i.OrderID == orderID);
            }
        }
        public async Task LoadDataAsync()
        {
            Source.Clear();

            var data = await SampleDataService.GetContentGridDataAsync();

            foreach (var item in data)
            {
                Source.Add(item);
            }
        }
        private async void Init()
        {
            ItemClickCommand = new RelayCommand <SampleOrder>(OnItemClick);

            var datas = await SampleDataService.GetContentGridDataAsync();

            foreach (var item in datas)
            {
                Source.Add(item);
            }
        }
Esempio n. 9
0
        public async Task LoadDataAsync()
        {
            Source.Clear();

            // TODO WTS: Replace this with your actual data
            var data = await SampleDataService.GetContentGridDataAsync();
            foreach (var item in data)
            {
                Source.Add(item);
            }
        }
Esempio n. 10
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            Source.Clear();

            // Replace this with your actual data
            var data = await SampleDataService.GetContentGridDataAsync();

            foreach (var item in data)
            {
                Source.Add(item);
            }
        }
Esempio n. 11
0
        private async void Init()
        {
            ItemClickCommand = new RelayCommand <SampleOrder>(OnItemClick);

            if (IsInDesignMode)
            {
                Source = new List <SampleOrder>(await SampleDataService.GetContentGridDataAsync());
            }
            else
            {
                Source = new ObservableCollection <SampleOrder>();
                var datas = await SampleDataService.GetContentGridDataAsync();

                foreach (var item in datas)
                {
                    Source.Add(item);
                }
            }
        }
        public async Task InitializeAsync(long orderID)
        {
            var data = await SampleDataService.GetContentGridDataAsync();

            Item = data.First(i => i.OrderID == orderID);
        }
Esempio n. 13
0
        public async void EnsureSampleDataServiceReturnsContentGridDataAsync()
        {
            var actual = await SampleDataService.GetContentGridDataAsync();

            Assert.NotEmpty(actual);
        }
        public async void EnsureSampleDataServiceReturnsContentGridDataAsync()
        {
            var actual = await SampleDataService.GetContentGridDataAsync();

            Assert.AreNotEqual(0, actual.Count());
        }