Ejemplo n.º 1
0
        private bool SizeIsAppropriate(AdReference ad, IWebDriver driver)
        {
            driver.Navigate().GoToUrl(ad.DetailUrl);
            RemoveEuNotif(driver);
            int terrain = GetTailleTerrain(driver);

            return(terrain == 0 || terrain > 500 /* m2 */ || terrain < 10 && terrain > 5); // 5 ha
        }
Ejemplo n.º 2
0
        public Ad(AdReference model, Website origin)
            : this()
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            this.Description = model.Description;
            this.DetailUrl   = model.DetailUrl;
            this.ExternalId  = model.Reference;
            this.Origin      = origin;
            this.PictureUrl  = model.PictureUrl;
        }
Ejemplo n.º 3
0
 private bool AlreadyExists(AdReference reference)
 {
     return(reference != null && this._repository.DoesExternalIdExists(this.Website, reference.Reference));
 }