public Synchroniser(IContextFacade context, ITransactionRepository transactionRepository,
                     IAccountRepository accountRepository,
                     ICurrencyRepository currencyRepository,
                     ICategoryRepository categoryRepository,
                     IAccountGroupRepository accountGroupRepository,
                     IUserRepository userRepository,
                     ISynchronizationRepository synchronizationRepository,
                     IUserIdentityContext userIdentityContext,
                     ITagRepository tagRepository,
                     ITransactionService transactionService,
                     ILogger logger,
                     IFileService fileService,
                     GeneralSettings settings) : base(context)
 {
     this.transactionRepository     = transactionRepository;
     this.accountRepository         = accountRepository;
     this.currencyRepository        = currencyRepository;
     this.categoryRepository        = categoryRepository;
     this.accountGroupRepository    = accountGroupRepository;
     this.userRepository            = userRepository;
     this.synchronizationRepository = synchronizationRepository;
     this.userIdentityContext       = userIdentityContext;
     this.settings           = settings;
     this.tagRepository      = tagRepository;
     this.transactionService = transactionService;
     this.logger             = logger;
     this.fileService        = fileService;
 }
Пример #2
0
 public FileRepository(IContextFacade context,
                       IUserIdentityContext userIdentityContext,
                       IFileHelper fileHelper) : base(context)
 {
     this.userIdentityContext = userIdentityContext;
     this.fileHelper          = fileHelper;
 }
        private Dictionary <int, int> transactionsMap; // key - old TransactionId, value - new TransactionId

        public SyncService(ITransactionRepository transactionRepository,
                           IAccountMobileRepository accountRepository,
                           ICurrencyRepository currencyRepository,
                           ICategoryRepository categoryRepository,
                           IAccountGroupRepository accountGroupRepository,
                           IUserRepository userRepository,
                           ISynchronizationRepository synchronizationRepository,
                           ITagRepository tagRepository,
                           IUserIdentityContext userIdentityContext,
                           GeneralSettings settings,
                           ISyncRequestBuilder syncRequestBuilder,
                           ISynchroniser synchroniser)
        {
            this.transactionRepository     = transactionRepository;
            this.accountRepository         = accountRepository;
            this.currencyRepository        = currencyRepository;
            this.categoryRepository        = categoryRepository;
            this.accountGroupRepository    = accountGroupRepository;
            this.userRepository            = userRepository;
            this.synchronizationRepository = synchronizationRepository;
            this.userIdentityContext       = userIdentityContext;
            this.settings           = settings;
            this.syncRequestBuilder = syncRequestBuilder;
            this.synchroniser       = synchroniser;
            this.tagRepository      = tagRepository;
        }
 public TestDataSeeder(IAccountService accountService, ITransactionService transactionService,
                       IAccountGroupService accountGroupService, ICurrencyService currencyService, ICategoryService categoryService,
                       IUserIdentityContext userContext, ICommandDispatcher commandDispatcher)
 {
     this.accountService      = accountService;
     this.transactionService  = transactionService;
     this.accountGroupService = accountGroupService;
     this.currencyService     = currencyService;
     this.categoryService     = categoryService;
     this.userContext         = userContext;
     this.commandDispatcher   = commandDispatcher;
 }
 public TagRepository(IContextFacade context, IUserIdentityContext userIdentityContext) : base(context)
 {
     this.userIdentityContext = userIdentityContext;
 }
Пример #6
0
 public TagService(ITagRepository tagRepository, IUserIdentityContext userIdentityContext)
 {
     this.tagRepository       = tagRepository;
     this.userIdentityContext = userIdentityContext;
 }
Пример #7
0
 public AccountMobileRepository(IContextFacade context, IUserIdentityContext userIdentityContext) : base(context)
 {
     this.userIdentityContext = userIdentityContext;
 }
Пример #8
0
 public TransactionRepository(IContextFacade context, IAccountRepository accountRepository,
                              IUserIdentityContext userIdentityContext) : base(context)
 {
     this.accountRepository   = accountRepository;
     this.userIdentityContext = userIdentityContext;
 }
Пример #9
0
 public CurrencyService(ICurrencyRepository currencyRepository, IUserIdentityContext userIdentityContext)
 {
     this.currencyRepository  = currencyRepository;
     this.userIdentityContext = userIdentityContext;
 }
 public FileService(IContextFacade context, IUserIdentityContext userIdentityContext, GeneralSettings settings, ILogger logger) : base(context)
 {
     this.userIdentityContext = userIdentityContext;
     this.settings            = settings;
     this.logger = logger;
 }