Пример #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;
 }