public void CheckList() { var list = _service.Get(); bool isEmptyList = IsEmpty(list); if (IsItemCreated) { Assert.IsFalse(isEmptyList); } else { Assert.IsTrue(isEmptyList); } Assert.AreEqual(this.UrlLinksCount, list.Count); }
public IActionResult Get() { return(Ok(_service.Get())); }