public void TestSearch() { var ctrl = new TodoController(_context, _logger); var res = ctrl.Search(name: "item"); var items = res.ToArray(); Assert.Equal(items.Count(), 2); Assert.Equal(items[0].Name, "Item1"); }
public void TestSearch() { var ctrl = new TodoController(_context, _logger); var res = ctrl.Search(name: "item"); var items = res.ToArray(); Assert.Equal(items.Count(), 2); Assert.Equal(items[0].Name, "Item1"); }