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