コード例 #1
0
        public void OnePublicAdsTest()
        {
            var ad = new AdVO {
                Typology = "GARAGE", Description = "Garaje de prueba", Pictures = new List <int>(), HouseSize = 150, Score = 40
            };

            _adRepository.Save(ad);

            var data = _service.GetPublicAds();

            Assert.NotNull(data);
            Assert.True(data.Count == 1);
            Assert.True(data[0].Description == "Garaje de prueba");

            _adRepository.Delete(ad);
        }