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

            Assert.NotEmpty(actual);
        }
Esempio n. 2
0
        public async Task EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var dataService = new SampleDataService();
            var actual      = await dataService.GetGridDataAsync();

            Assert.AreNotEqual(0, actual.Count());
        }
Esempio n. 3
0
        public async Task EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var sampleDataService = new SampleDataService();

            var data = await sampleDataService.GetGridDataAsync();

            Assert.IsTrue(data.Any());
        }
Esempio n. 4
0
        public async Task LoadDataAsync()
        {
            Source.Clear();

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

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

            // Get sample data from service
            var data = await SampleDataService.GetGridDataAsync();

            foreach (var item in data)
            {
                Source.Add(item);
            }
        }
Esempio n. 6
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            Source.Clear();

            // TODO WTS: Replace this with your actual data
            var data = await SampleDataService.GetGridDataAsync();

            foreach (var item in data)
            {
                Source.Add(item);
            }
        }
Esempio n. 7
0
        public async void EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var actual = await SampleDataService.GetGridDataAsync();

            Assert.NotEmpty(actual);
        }
Esempio n. 8
0
        public async void EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var actual = await SampleDataService.GetGridDataAsync();

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