Exemple #1
0
        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()));
 }
Exemple #3
0
 public IActionResult Get()
 {
     return(Ok(_coffeeRepository.GetAll()));
     //return new string[] { "value1", "value2" };
 }