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); } }
public async Task <GpsLocationViewModel> ReadLocation() { await Task.Delay(10); return(GpsLocationViewModel.CreateRandom()); }