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"); }
// POST api/<controller> public ArtFilter Post([FromBody] ArtFilter artFilter) { artFilter.insert(); return(artFilter); }
// GET api/<controller> public List <ArtFilter> Get() { ArtFilter af = new ArtFilter(); return(af.getArtFilters()); }