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

            converter = new OutputConverter();
        }
Beispiel #9
0
 public GetCustomerService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IResultConverter resultConverter,
     ICustomersQueries customersQueries)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.resultConverter            = resultConverter;
     this.customersQueries           = customersQueries;
 }
Beispiel #10
0
 public CloseService(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.resultConverter             = resultConverter;
 }
Beispiel #11
0
 public UpdateScheduleService(
     IScheduleWriteOnlyRepository scheduleWriteOnlyRepository,
     IResultConverter resultConverter,
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     IServiceReadOnlyRepository serviceReadOnlyRepository)
 {
     this.scheduleWriteOnlyRepository = scheduleWriteOnlyRepository;
     this.resultConverter             = resultConverter;
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.serviceReadOnlyRepository   = serviceReadOnlyRepository;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #15
0
 public DepositInteractor(
     ICustomerReadOnlyRepository customerReadOnlyRepository,
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IOutputBoundary <DepositResponse> outputBoundary,
     IResponseConverter responseConverter)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.outputBoundary    = outputBoundary;
     this.responseConverter = responseConverter;
 }
Beispiel #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;
 }
Beispiel #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;
 }
 public GetCustomerByIdQueryHandler(IMapper mapper, ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     _mapper = mapper;
     _customerReadOnlyRepository = customerReadOnlyRepository;
 }
Beispiel #19
0
 public CustomerGetAllUseCase(ICustomerReadOnlyRepository customerReadOnlyRepository, IOutputPort output)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
     this.output = output;
 }
 public CustomerGetAllUse(ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     this.customerReadOnlyRepository = customerReadOnlyRepository;
 }
Beispiel #21
0
 public void TestInitialize()
 {
     _mapper = IMapper;
     _customerReadOnlyRepository = new CustomerFakeRepository();
 }
Beispiel #22
0
 public CustomerTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResultConverter();
 }
Beispiel #23
0
 public CustomerRepositoryTest(ICustomerReadOnlyRepository customerReadOnlyRepository, ICustomerWriteOnlyRepository customerWriteOnlyRepository)
 {
     this.customerReadOnlyRepository  = customerReadOnlyRepository;
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
 }
Beispiel #24
0
 public CustomerGetUseCase(IOutputPort output, ICustomerReadOnlyRepository customerReadOnlyRepository)
 {
     this.output = output;
     this.customerReadOnlyRepository = customerReadOnlyRepository;
 }
Beispiel #25
0
 public AccountTests()
 {
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
     converter = new ResponseConverter();
 }