Exemplo n.º 1
0
        public void ValidateShop(string name)
        {
            var shop = ShopCatalog.markets.Find(x => x.name == name);
            RootParsingObject market = RootParsingObject.ReadAllBrandsShopFromFtp(shop);

            ValidateShop(market);
        }
Exemplo n.º 2
0
        public new void ValidateAllShops()
        {
            //загружаем каталог магазинов
            var shopCatalog = ShopCatalog;

            foreach (var shop in shopCatalog.markets)
            {
                RootParsingObject market = RootParsingObject.ReadAllBrandsShopFromFtp(shop);
                if (market != null)
                {
                    var shopValidator = new ShopValidator();
                    ValidateShop(market);
                }
                else
                {
                    bool test = true;
                }
            }
        }