Exemple #1
0
        public void ShouldGetCustomerById()
        {
            var request = new CustomerGetRequest(CustomerId);

            customerGetUseCase.Execute(request);
            presenter.ViewModel.Should().BeOfType <OkObjectResult>();
        }
Exemple #2
0
        public IActionResult GetCustomer([FromBody] InputCustomer input)
        {
            var request = new CustomerGetRequest(input.CustomerId);

            customerGetUseCase.Execute(request);
            return(presenter.ViewModel);
        }