예제 #1
0
        public async Task EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var dataService = new SampleDataService();
            var actual      = await dataService.GetGridDataAsync();

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

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

            var data = await sampleDataService.GetGridDataAsync();

            Assert.IsTrue(data.Any());
        }
예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #7
0
파일: Tests.cs 프로젝트: chisoftltd/UWPApp
        public async void EnsureSampleDataServiceReturnsGridDataAsync()
        {
            var actual = await SampleDataService.GetGridDataAsync();

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

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