public void GetAll_Returns_All() { underTest.Create(new Coffee() { Brand = "Baby Coffee" }); underTest.Create(new Coffee() { Brand = "Never gonna give you up" }); var all = underTest.GetAll(); Assert.Equal(2, all.Count()); }
public IActionResult Get() { return(Ok(_coffeeRepository.GetAll())); }
public IActionResult Get() { return(Ok(_coffeeRepository.GetAll())); //return new string[] { "value1", "value2" }; }