public ActionResult GetAll()
        {
            var customer = customerGetAllUseCase.Execute(1);

            if (!customer.Any())
            {
                return(BadRequest());
            }

            return(new ObjectResult(customer));
        }
Ejemplo n.º 2
0
 public IActionResult GetAllCustomers()
 {
     customerGetAllUseCase.Execute();
     return(presenter.ViewModel);
 }
Ejemplo n.º 3
0
 public void ShouldExecute()
 {
     customerGetAllUseCase.Execute();
     presenter.ViewModel.Should().BeOfType <OkObjectResult>();
 }