예제 #1
0
        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);
        }
예제 #2
0
 public CustomerGetController(FindCustomerByIdUseCase findCustomerByIdUseCase, CustomerConverter CustomerConverter)
 {
     this.findCustomerByIdUseCase = findCustomerByIdUseCase;
     this.CustomerConverter       = CustomerConverter;
 }