Пример #1
0
        public MockStoreProvider()
        {
            for (var i = 0; i < 10; i++)
            {
                var picture = new PictureViewModel();
                picture.Header.DateTakenUtc = DateTime.UtcNow.AddDays(-i);
                picture.Header.Name         = $"Nature Picture {i}";
                picture.Header.PictureId    = Guid.NewGuid();

                var location = GpsLocationViewModel.CreateRandom();
                picture.Header.Location.Latitude  = location.Latitude;
                picture.Header.Location.Longitude = location.Longitude;

                StoredPictures.Add(picture);
            }
        }
Пример #2
0
        public async Task <GpsLocationViewModel> ReadLocation()
        {
            await Task.Delay(10);

            return(GpsLocationViewModel.CreateRandom());
        }