private static CustomerGetController CreateCustomerGetController() { LoggingService loggingService = new LoggingService(); ICustomerRepository CustomerRepository = new CustomerRepository(loggingService); FindCustomerByIdUseCase findCustomerByIdUseCase = new FindCustomerByIdUseCase(CustomerRepository); CustomerConverter customerConverter = new CustomerConverter(); CustomerGetController controller = new CustomerGetController(findCustomerByIdUseCase, customerConverter); return(controller); }
public CustomerGetController(FindCustomerByIdUseCase findCustomerByIdUseCase, CustomerConverter CustomerConverter) { this.findCustomerByIdUseCase = findCustomerByIdUseCase; this.CustomerConverter = CustomerConverter; }