Пример #1
0
 public AdminService(IAccountAccessor accountAccessor,
                     IDonateAccessor donateAccessor,
                     IInventoryAccessor inventoryAccessor,
                     ILanguageAndCurrencyAccessor languageAndCurrencyAccessor)
 {
     _accountAccessor             = accountAccessor;
     _donateAccessor              = donateAccessor;
     _inventoryAccessor           = inventoryAccessor;
     _languageAndCurrencyAccessor = languageAndCurrencyAccessor;
 }
Пример #2
0
 public MemberService(EventService eventService,
                      IRepository <Member> memberRepo,
                      AuthorizationService authorizationService,
                      IAccountAccessor accountAccessor)
 {
     _eventService         = eventService;
     _memberRepo           = memberRepo;
     _authorizationService = authorizationService;
     _accountAccessor      = accountAccessor;
 }
Пример #3
0
 public DonateService(IDonateAccessor donateAccessor,
                      IInventoryAccessor inventoryAccessor,
                      IEmailService emailService,
                      IAccountAccessor accountAccessor)
 {
     _donateAccessor    = donateAccessor;
     _inventoryAccessor = inventoryAccessor;
     _emailService      = emailService;
     _accountAccessor   = accountAccessor;
 }
Пример #4
0
 public LoginService(IConfiguration configuration,
                     IEncryptionService encryptionService,
                     IAccountAccessor accountAccessor,
                     IEmailService emailService,
                     IDonateService donateService)
 {
     _configuration     = configuration;
     _encryptionService = encryptionService;
     _accountAccessor   = accountAccessor;
     _emailService      = emailService;
     _donateService     = donateService;
 }
Пример #5
0
        public MemberServiceTest()
        {
            _eventRepo  = new TestRepo <Event>();
            _memberRepo = new TestRepo <Member>();
            var account = new Account("tyler");

            _accountAccessor = new TestAccountAccessor(account);
            var authService = new AuthorizationService(_memberRepo, _accountAccessor);

            _eventService  = new EventService(_eventRepo, _memberRepo, authService, _accountAccessor);
            _memberService = new MemberService(_eventService, _memberRepo, authService, _accountAccessor);
        }
Пример #6
0
 public AccountService(IAccountAccessor accountAccessor,
                       ILanguageAndCurrencyAccessor languageAccessor,
                       IEncryptionService encryptionService,
                       IConfiguration configuration,
                       ILanguageAndCurrencyService foo)
 {
     _accountAccessor   = accountAccessor;
     _languageAccessor  = languageAccessor;
     _encryptionService = encryptionService;
     _configuration     = configuration;
     _foo = foo;
 }
Пример #7
0
 public PaymentService(IConfiguration configuration,
                       IEncryptionService encryptionService,
                       ILanguageAndCurrencyAccessor currencyAccessor,
                       IPaymentAccessor paymentAccessor,
                       IDonateAccessor donateAccessor,
                       IEmailService emailService,
                       IAccountAccessor accountAccessor)
 {
     _configuration     = configuration;
     _encryptionService = encryptionService;
     _currencyAccessor  = currencyAccessor;
     _paymentAccessor   = paymentAccessor;
     _donateAccessor    = donateAccessor;
     _emailService      = emailService;
     _accountAccessor   = accountAccessor;
 }
Пример #8
0
 public Handler(IAccountAccessor accountAccessor, ITransactionAccessor transactionAccessor)
 {
     this.accountAccessor     = accountAccessor;
     this.transactionAccessor = transactionAccessor;
 }
Пример #9
0
 public AuthorizationService(IRepository <Member> memberRepo,
                             IAccountAccessor accountAccessor)
 {
     _memberRepo      = memberRepo;
     _accountAccessor = accountAccessor;
 }
Пример #10
0
 public TodoController(IRepository <Todo> todoRepository, IAccountAccessor accountAccessor)
 {
     _todoRepository  = todoRepository;
     _accountAccessor = accountAccessor;
 }