Exemple #1
0
        public void ArtFilters(bool isPositive)
        {
            ArtFilter page = new ArtFilter(driver);
            bool      isOk = page.Goto(driver).isOk();

            Assert.That(isOk, Is.EqualTo(isPositive), $"Art filter {(isOk ? "existed" : "not existed")} " +
                        "but we expected opposite");
        }
Exemple #2
0
 // POST api/<controller>
 public ArtFilter Post([FromBody] ArtFilter artFilter)
 {
     artFilter.insert();
     return(artFilter);
 }
Exemple #3
0
        // GET api/<controller>
        public List <ArtFilter> Get()
        {
            ArtFilter af = new ArtFilter();

            return(af.getArtFilters());
        }