Exemplo n.º 1
0
        public IActionResult GetAllCoffees()
        {
            var coffees = _coffeeManager.GetAllCoffees();

            var response = _mapper.Map <IEnumerable <CoffeeResponse> >(coffees);

            return(Ok(response));
        }
        public void GetAllCoffees_WhenCalled_ReturnsListOfCoffees()
        {
            var result = _manager.GetAllCoffees();

            Assert.That(result, Is.InstanceOf <IEnumerable <Coffee> >());
        }