public void valid_searchall_products() { repository .Setup(rp => rp.Search()) .Returns(Enumerable.Empty <Product>()) .Verifiable(); var products = searchAllManager.Search(); products .Should() .NotBeNull(); repository.Verify(); }
public IActionResult Get() { var products = searchAllManager.Search(); return(Ok(products)); }