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