コード例 #1
0
 public AccountTests()
 {
     accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
     accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
 }
コード例 #2
0
 public DeleteCustomerService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
コード例 #3
0
 public GetCustomerDetailsUseCase(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IAccountReadOnlyRepository accountReadOnlyRepository)
 {
     _customerReadOnlyRepository = customerReadOnlyRepository;
     _accountReadOnlyRepository  = accountReadOnlyRepository;
 }
コード例 #4
0
 public DeleteCustomerCommandHandler(IUnitOfWork uow, ICustomerReadOnlyRepository customerReadOnlyRepository, ICustomerRepository customerRepository)
     : base(uow)
 {
     _uow = uow;
     _customerReadOnlyRepository = customerReadOnlyRepository;
     _customerRepository         = customerRepository;
 }
コード例 #5
0
 public UpdateCustomerCommandHandler(IUnitOfWork uow, ICustomerRepository customerRepository, ICustomerReadOnlyRepository customerReadOnlyRepository, IMapper mapper)
     : base(uow)
 {
     _uow = uow;
     _customerRepository         = customerRepository;
     _customerReadOnlyRepository = customerReadOnlyRepository;
     _mapper = mapper;
 }
コード例 #6
0
 public PlaceOrderUseCase(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IOrderWriteRepository orderWriteOnlyRepository,
     IKafkaProducer kafkaProducer)
 {
     _customerReadOnlyRepository = customerReadOnlyRepository;
     _orderWriteOnlyRepository   = orderWriteOnlyRepository;
     _kafkaProducer = kafkaProducer;
 }
コード例 #7
0
 public GetAccountDetailsInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IOutputBoundary <AccountResponse> outputBoundary,
     IResponseConverter responseConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.responseConverter          = responseConverter;
 }
コード例 #8
0
        public CustomerTests()
        {
            accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
            accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
            customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
            customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();

            converter = new OutputConverter();
        }
コード例 #9
0
 public GetCustomerService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IResultConverter resultConverter,
     ICustomersQueries customersQueries)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.resultConverter            = resultConverter;
     this.customersQueries           = customersQueries;
 }
コード例 #10
0
ファイル: CloseService.cs プロジェクト: rodrigoafb/acerola
 public CloseService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.resultConverter             = resultConverter;
 }
コード例 #11
0
 public UpdateScheduleService(
     IScheduleWriteOnlyRepository scheduleWriteOnlyRepository,
     IResultConverter resultConverter,
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IServiceReadOnlyRepository serviceReadOnlyRepository)
 {
     this.scheduleWriteOnlyRepository = scheduleWriteOnlyRepository;
     this.resultConverter             = resultConverter;
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.serviceReadOnlyRepository   = serviceReadOnlyRepository;
 }
コード例 #12
0
 public AddBasketInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IBasketWriteOnlyRepository basketWriteOnlyRepository,
     IOutputBoundary <AddBasketOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.basketWriteOnlyRepository  = basketWriteOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.outputConverter            = outputConverter;
 }
コード例 #13
0
 public CheckoutInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IBasketReadOnlyRepository basketReadOnlyRepository,
     IOutputBoundary <CheckoutOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.basketReadOnlyRepository   = basketReadOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.outputConverter            = outputConverter;
 }
コード例 #14
0
 public GetCustomerDetailsInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IOutputBoundary <CustomerOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.outputConverter            = outputConverter;
 }
コード例 #15
0
ファイル: DepositInteractor.cs プロジェクト: jangocheng/manga
 public DepositInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IOutputBoundary <DepositResponse> outputBoundary,
     IResponseConverter responseConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.outputBoundary    = outputBoundary;
     this.responseConverter = responseConverter;
 }
コード例 #16
0
 public GetCustomerDetailsInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IOrderReadOnlyRepository orderReadOnlyRepository,
     IBasketReadOnlyRepository basketReadOnlyRepository,
     IOutputBoundary <CustomerOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.orderReadOnlyRepository    = orderReadOnlyRepository;
     this.basketReadOnlyRepository   = basketReadOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.outputConverter            = outputConverter;
 }
コード例 #17
0
 public RegisterInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IPublisher bus,
     IOutputBoundary <RegisterOutput> outputBoundary,
     IOutputConverter responseConverter)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.bus               = bus;
     this.outputBoundary    = outputBoundary;
     this.responseConverter = responseConverter;
 }
コード例 #18
0
 public GetCustomerByIdQueryHandler(IMapper mapper, ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     _mapper = mapper;
     _customerReadOnlyRepository = customerReadOnlyRepository;
 }
コード例 #19
0
 public CustomerGetAllUseCase(ICustomerReadOnlyRepository customerReadOnlyRepository, IOutputPort output)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.output = output;
 }
コード例 #20
0
 public CustomerGetAllUse(ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
 }
コード例 #21
0
 public void TestInitialize()
 {
     _mapper = IMapper;
     _customerReadOnlyRepository = new CustomerFakeRepository();
 }
コード例 #22
0
 public CustomerTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResultConverter();
 }
コード例 #23
0
 public CustomerRepositoryTest(ICustomerReadOnlyRepository customerReadOnlyRepository, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
コード例 #24
0
 public CustomerGetUseCase(IOutputPort output, ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     this.output = output;
     this.customerReadOnlyRepository = customerReadOnlyRepository;
 }
コード例 #25
0
 public AccountTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResponseConverter();
 }