Ejemplo n.º 1
0
        public async Task DataAccessYandexMarket_NotNull()
        {
            var dataAccessYandexMarket = new DataAccessYandexMarket(feed);

            await dataAccessYandexMarket.InitAsync();

            var shop = await dataAccessYandexMarket.GetShop();

            Assert.Equal("Магазин ООО «Саммет»", shop.Shop.Name);
        }
Ejemplo n.º 2
0
        public override async Task InitializeAsync(object parameter)
        {
            await base.InitializeAsync(parameter);

            IsBusy = true;

            var dal = new DataAccessYandexMarket("https://www.tdsammet.ru/index.php?route=feed/yandex_market");

            GlobalSettings.Instance.Shop = (await dal.GetShop()).Shop;


            await NavigationService.NavigateToAsync <CatalogViewModel>();

            await NavigationService.RemoveBackStackAsync();

            IsBusy = false;

            //await Application.Current.MainPage.Navigation.PushAsync(new CatalogPage());
        }