예제 #1
0
 public RegisterService(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.resultConverter             = resultConverter;
 }
예제 #2
0
 public RegisterUseCase(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _customerWriteOnlyRepository = customerWriteOnlyRepository;
     _accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
예제 #3
0
 public DeleteCustomerService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #4
0
 public RegisterCommandHandler(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
 public AccountTests()
 {
     accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
     accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
 }
예제 #6
0
 public RegisterService(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
예제 #7
0
        public CustomerTests()
        {
            accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
            accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
            customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
            customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();

            converter = new OutputConverter();
        }
예제 #8
0
 public RegisterInteractor(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IOutputBoundary <RegisterResponse> outputBoundary,
     IResponseConverter responseConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.outputBoundary    = outputBoundary;
     this.responseConverter = responseConverter;
 }
예제 #9
0
 public CloseService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.resultConverter             = resultConverter;
 }
예제 #10
0
 public WithdrawInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IOutputBoundary <WithdrawResponse> outputBoundary,
     IResponseConverter responseConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.outputBoundary    = outputBoundary;
     this.responseConverter = responseConverter;
 }
예제 #11
0
 public RegisterInteractor(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IBasketWriteOnlyRepository basketWriteOnlyRepository,
     IOutputBoundary <RegisterOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.basketWriteOnlyRepository   = basketWriteOnlyRepository;
     this.outputBoundary  = outputBoundary;
     this.outputConverter = outputConverter;
 }
예제 #12
0
 public RegisterInteractor(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IOutputBoundary <RegisterOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
     this.outputBoundary  = outputBoundary;
     this.outputConverter = outputConverter;
 }
        public RegisteredEventHandler(
            ICustomerWriteOnlyRepository customerWriteOnlyRepository,
            IAccountWriteOnlyRepository accountWriteOnlyRepository)
        {
            if (customerWriteOnlyRepository == null)
            {
                throw new ArgumentNullException(nameof(customerWriteOnlyRepository));
            }

            if (accountWriteOnlyRepository == null)
            {
                throw new ArgumentNullException(nameof(accountWriteOnlyRepository));
            }

            this.customerWriteOnlyRepository = customerWriteOnlyRepository;
            this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
        }
예제 #14
0
 public CustomerDeleteUseCase(IOutputPort output, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.output = output;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #15
0
 public RegisteredEventHandler(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #16
0
 public AccountTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResponseConverter();
 }
 public CustomerCreateUseCase(ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #18
0
 public CustomerDeleteUseCaseTests(ICustomerDeleteUseCase customerDeleteUseCase, CustomerPresenter presenter, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerDeleteUseCase       = customerDeleteUseCase;
     this.presenter                   = presenter;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #19
0
 public CustomerControllerTests(ICustomerGetAllUseCase customerGetAllUseCase, CustomerPresenter presenter, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerGetAllUseCase       = customerGetAllUseCase;
     this.presenter                   = presenter;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #20
0
 public CustomerTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResultConverter();
 }
예제 #21
0
 public CustomerRepositoryTest(ICustomerReadOnlyRepository customerReadOnlyRepository, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
예제 #22
0
 public SaveHandler(ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }