Exemplo n.º 1
0
 public RegisterService(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
 public CloseAccountUseCase(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 3
0
 public RegisterUseCase(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _customerWriteOnlyRepository = customerWriteOnlyRepository;
     _accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
Exemplo n.º 4
0
 public AccountService(IAccountReadOnlyRepository readOnlyRepository, IAccountWriteOnlyRepository writeOnlyRepository, IPasswordHasher <IUser> passwordHasher, AuthenticationSettings authSettings)
 {
     _readOnlyRepository  = readOnlyRepository;
     _writeOnlyRepository = writeOnlyRepository;
     _passwordHasher      = passwordHasher;
     _authSettings        = authSettings;
 }
Exemplo n.º 5
0
 public RegisterCommandHandler(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
 }
Exemplo n.º 6
0
 public DepositCommandHandler(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
 public WithdrawService(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 8
0
 public WithdrawUseCase(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
 public AccountTests()
 {
     accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
     accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
     customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
     customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();
 }
 public WithdrawResultCommandHandler(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
 public CloseService(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 12
0
 public DepositUseCase(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 13
0
        public CustomerTests()
        {
            accountReadOnlyRepository   = Substitute.For <IAccountReadOnlyRepository>();
            accountWriteOnlyRepository  = Substitute.For <IAccountWriteOnlyRepository>();
            customerReadOnlyRepository  = Substitute.For <ICustomerReadOnlyRepository>();
            customerWriteOnlyRepository = Substitute.For <ICustomerWriteOnlyRepository>();

            converter = new OutputConverter();
        }
 public RegisterService(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
     this.resultConverter             = resultConverter;
 }
Exemplo n.º 15
0
 public CloseService(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IResultConverter resultConverter)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
     this.resultConverter            = resultConverter;
 }
Exemplo n.º 16
0
 public SignUpUseCase(
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IUserWriteOnlyRepository userWriteOnlyRepository,
     IUserReadOnlyRepository userReadOnlyRepository,
     IOptions <JwtSettings> jwtOptions)
 {
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
     _userWriteOnlyRepository    = userWriteOnlyRepository;
     _userReadOnlyRepository     = userReadOnlyRepository;
     jwtSettings = jwtOptions.Value;
 }
Exemplo n.º 17
0
 public RegisterInteractor(
     ICustomerWriteOnlyRepository customerWriteOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IOutputBoundary <RegisterOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.customerWriteOnlyRepository = customerWriteOnlyRepository;
     this.accountWriteOnlyRepository  = accountWriteOnlyRepository;
     this.outputBoundary  = outputBoundary;
     this.outputConverter = outputConverter;
 }
Exemplo n.º 18
0
 public CloseInteractor(
     IAccountReadOnlyRepository accountReadOnlyRepository,
     IAccountWriteOnlyRepository accountWriteOnlyRepository,
     IOutputBoundary <CloseOutput> outputBoundary,
     IOutputConverter outputConverter)
 {
     this.accountReadOnlyRepository  = accountReadOnlyRepository;
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
     this.outputBoundary             = outputBoundary;
     this.outputConverter            = outputConverter;
 }
Exemplo n.º 19
0
        public WithdrewEventHandler(
            IAccountReadOnlyRepository accountReadOnlyRepository,
            IAccountWriteOnlyRepository accountWriteOnlyRepository)
        {
            if (accountReadOnlyRepository == null)
            {
                throw new ArgumentNullException(nameof(accountReadOnlyRepository));
            }

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

            this.accountReadOnlyRepository  = accountReadOnlyRepository;
            this.accountWriteOnlyRepository = accountWriteOnlyRepository;
        }
Exemplo n.º 20
0
        public Close(
            IAccountReadOnlyRepository accountReadOnlyRepository,
            IAccountWriteOnlyRepository accountWriteOnlyRepository)
        {
            if (accountReadOnlyRepository == null)
            {
                throw new ArgumentNullException(nameof(accountReadOnlyRepository));
            }

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

            this.accountReadOnlyRepository  = accountReadOnlyRepository;
            this.accountWriteOnlyRepository = accountWriteOnlyRepository;
        }
        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;
        }
Exemplo n.º 22
0
 public SaveAmountRecordUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 23
0
 public RemoveFinanceStatementUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 24
0
 public WithdrewEventHandler(
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 25
0
 public AddExpenseUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 26
0
 public UpdateAccountUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this._accountReadOnlyRepository  = accountReadOnlyRepository;
     this._accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
 public MakeTransferUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountReadOnlyRepository  = accountReadOnlyRepository;
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
 public CreateAccountUseCase(IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     _accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 29
0
 public DepositedEventHandler(
     IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this.accountWriteOnlyRepository = accountWriteOnlyRepository;
 }
Exemplo n.º 30
0
 public AddRevenueUseCase(IAccountReadOnlyRepository accountReadOnlyRepository, IAccountWriteOnlyRepository accountWriteOnlyRepository)
 {
     this._accountReadOnlyRepository  = accountReadOnlyRepository;
     this._accountWriteOnlyRepository = accountWriteOnlyRepository;
 }