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 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;
 }
Beispiel #3
0
 public AccountGroupManager(
     AccountGroupCacheService accountGroupCacheService,
     IAccountGroupRepository accountGroupRepository,
     MarginSettings settings,
     IClientNotifyService clientNotifyService)
 {
     _accountGroupCacheService = accountGroupCacheService;
     _repository          = accountGroupRepository;
     _settings            = settings;
     _clientNotifyService = clientNotifyService;
 }
 public TransactionImporter(IUnitOfWork unitOfWork, IAccountService accountService, IAccountRepository accountRepository, ITransactionRepository transactionRepository, IVendorRepository vendorRepository, ICategoryGroupRepository categoryGroupRepository, IAccountGroupRepository accountGroupRepository, IImportDescriptionVendorMapRepository importDescriptionVendorMapRepository)
 {
     _unitOfWork = unitOfWork;
     _accountService = accountService;
     _accountRepository = accountRepository;
     _transactionRepository = transactionRepository;
     _vendorRepository = vendorRepository;
     _categoryGroupRepository = categoryGroupRepository;
     _accountGroupRepository = accountGroupRepository;
     _importDescriptionVendorMapRepository = importDescriptionVendorMapRepository;
 }
Beispiel #5
0
 public void Dispose()
 {
     _accountCategoryRepository = null;
     _accountGroupRepository    = null;
     _accountMasterRepository   = null;
     _branchRepository          = null;
     _companyRepository         = null;
     _billingsHistoryRepository = null;
     _packageRepository         = null;
     _customerRepository        = null;
 }
Beispiel #6
0
 public AccountGroupService(IAccountGroupRepository accountGroupRepository)
 {
     this.accountGroupRepository = accountGroupRepository;
 }
Beispiel #7
0
 public AccountGroupValidator(
     IAccountGroupRepository arg0
     ) : base()
 {
     field0 = arg0;
 }
 public AccountGroupController(IAccountGroupRepository service)
 {
     this.service = service;
 }
 public AccountGroupsController(IAccountGroupRepository accountGroupRepository, IConvertService convertService)
 {
     _accountGroupRepository = accountGroupRepository;
     _convertService         = convertService;
 }
Beispiel #10
0
 public AccountGroupsController(IAccountGroupRepository accountGroupRepository)
 {
     _accountGroupRepository = accountGroupRepository;
 }