public void Initialize()
        {
            //Arrange
            var databaseFactory = new DatabaseFactory();

            _unitOfWork = new UnitOfWork(databaseFactory);

            _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory);
            _employeeDailyPayrollRepository = new EmployeeDailyPayrollRepository(databaseFactory);
            _totalEmployeeHoursRepository   = new TotalEmployeeHoursRepository(databaseFactory);
            _employeeWorkScheduleRepository = new EmployeeWorkScheduleRepository(databaseFactory);
            _holidayRepository       = new HolidayRepository(databaseFactory);
            _employeeInfoRepository  = new EmployeeInfoRepository(databaseFactory);
            _employeeHoursRepository = new EmployeeHoursRepository(databaseFactory);
            _settingRepository       = new SettingRepository(databaseFactory);

            _totalEmployeeHoursService = new TotalEmployeeHoursService(_unitOfWork, _totalEmployeeHoursRepository, null, _settingService);

            _employeeWorkScheduleService = new EmployeeWorkScheduleService(_employeeWorkScheduleRepository);
            _holidayService        = new HolidayService(_holidayRepository, _settingRepository, _unitOfWork);
            _settingService        = new SettingService(_settingRepository);
            _employeeInfoService   = new EmployeeInfoService(_employeeInfoRepository);
            _employeeSalaryService = new EmployeeSalaryService();

            _employeeDailyPayrollService = new EmployeeDailyPayrollService(_unitOfWork, _totalEmployeeHoursService,
                                                                           _employeeWorkScheduleService, _holidayService, _settingService, _employeeDailyPayrollRepository, _employeeInfoService, _employeeSalaryService);
        }
Ejemplo n.º 2
0
 public UpdateZipFilesJob(IZipFileService zipFileService, ISettingRepository settingRepository, ILogger <UpdateZipFilesJob> logger, IDateTimeNowWrapper dateTimeNowWrapper)
 {
     _zipFileService     = zipFileService;
     _settingRepository  = settingRepository;
     _logger             = logger;
     _dateTimeNowWrapper = dateTimeNowWrapper;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize application global variables
        /// </summary>
        public static void Init(ISettingRepository setttingRepository)
        {
            CurrentFolders folder = new CurrentFolders(setttingRepository);

            Folders = folder;
            Folders.Init();

            CurrentDevice device = new CurrentDevice(setttingRepository, Folders.DevicesGuid);

            Device = device;
            Device.Init();

            CurrentUser userSystem = new CurrentUser(setttingRepository, Folders.UsersGuid);

            UserSystem = userSystem;
            UserSystem.Init();

            CurrentUser user = new CurrentUser(setttingRepository, Folders.UsersGuid);

            User = user;
            User.Init();

            SettingLog log = new SettingLog(setttingRepository);

            Log = log;
            Log.Init();
        }
 public SPKHistoryDetailModel(
     IReferenceRepository referenceRepository, 
     IVehicleRepository vehicleRepository,
     ISPKRepository SPKRepository, 
     ISPKDetailSparepartRepository SPKDetailSparePartRepository,
     ISPKDetailSparepartDetailRepository SPKDetailSparepartDetailRepository, 
     ISparepartRepository sparepartRepository,
     ISparepartDetailRepository sparepartDetailRepository,
     ISettingRepository settingRepository,
     IVehicleWheelRepository vehicleWheelRepository,
     ISPKScheduleRepository SPKScheduleReposistory,
     IMechanicRepository mechanicRepository,
     IWheelExchangeHistoryRepository wheelExchangeHistoryRepository,
     ISpecialSparepartRepository specialSparepartRepository,
     ISpecialSparepartDetailRepository specialSparepartDetailRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _referenceRepository = referenceRepository;
     _vehicleRepository = vehicleRepository;
     _SPKRepository = SPKRepository;
     _SPKDetailSparepartRepository = SPKDetailSparePartRepository;
     _SPKDetailSparepartDetailRepository = SPKDetailSparepartDetailRepository;
     _sparepartRepository = sparepartRepository;
     _sparepartDetailRepository = sparepartDetailRepository;
     _settingRepository = settingRepository;
     _vehicleWheelRepository = vehicleWheelRepository;
     _SPKScheduleRepository = SPKScheduleReposistory;
     _mechanicRepository = mechanicRepository;
     _wheelExchangeHistoryRepository = wheelExchangeHistoryRepository;
     _specialSparepartDetailRepository = specialSparepartDetailRepository;
     _specialSparepartRepository = specialSparepartRepository;
     _unitOfWork = unitOfWork;
 }
 public SPKHistoryDetailModel(
     IReferenceRepository referenceRepository,
     IVehicleRepository vehicleRepository,
     ISPKRepository SPKRepository,
     ISPKDetailSparepartRepository SPKDetailSparePartRepository,
     ISPKDetailSparepartDetailRepository SPKDetailSparepartDetailRepository,
     ISparepartRepository sparepartRepository,
     ISettingRepository settingRepository,
     IVehicleWheelRepository vehicleWheelRepository,
     ISPKScheduleRepository SPKScheduleReposistory,
     IMechanicRepository mechanicRepository,
     IWheelExchangeHistoryRepository wheelExchangeHistoryRepository,
     ISpecialSparepartDetailRepository specialSparepartDetailRepository,
     IUnitOfWork unitOfWork) : base()
 {
     _referenceRepository                = referenceRepository;
     _vehicleRepository                  = vehicleRepository;
     _SPKRepository                      = SPKRepository;
     _SPKDetailSparepartRepository       = SPKDetailSparePartRepository;
     _SPKDetailSparepartDetailRepository = SPKDetailSparepartDetailRepository;
     _sparepartRepository                = sparepartRepository;
     _settingRepository                  = settingRepository;
     _vehicleWheelRepository             = vehicleWheelRepository;
     _SPKScheduleRepository              = SPKScheduleReposistory;
     _mechanicRepository                 = mechanicRepository;
     _wheelExchangeHistoryRepository     = wheelExchangeHistoryRepository;
     _specialSparepartDetailRepository   = specialSparepartDetailRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 6
0
 public StorageService(IStorageRepository storageRepository, ITeamRepository teamRepository, ISettingRepository settingRepository)
 {
     this.storageRepository          = storageRepository;
     this.teamRepository             = teamRepository;
     this.articleAvailabilityService = IoCContainer.Resolve <IArticleAvailabilityService>();
     this.settingRepository          = settingRepository;
 }
 public ConfigEditorModel(IUserRepository userRepository, ISettingRepository settingRepository, IUnitOfWork unitOfWork)
     : base()
 {
     _userRepository = userRepository;
     _settingRepository = settingRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 8
0
 public CustomerService(
     ICustomerRepository repository,
     ISettingRepository settingRepository)
 {
     _repository        = repository;
     _settingRepository = settingRepository;
 }
Ejemplo n.º 9
0
 public CardLimitsFactory(ISettingRepository settingRepository, IRepository<Currency> currencyRepository)
 {
     Assert.NotNull("settingRepository", settingRepository);
     Assert.NotNull("currencyRepository", currencyRepository);
     _settingRepository = settingRepository;
     _currencyRepository = currencyRepository;
 }
 public MechanicListModel(ISettingRepository settingRepository,
     IMechanicRepository mechanicRepository, IUnitOfWork unitOfWork)
 {
     _settingRepository = settingRepository;
     _mechanicRepository = mechanicRepository;
     _unitOfWork = unitOfWork;
 }
 public SPKEditorModel(ISettingRepository settingRepository, IReferenceRepository referenceRepository, IVehicleRepository vehicleRepository,
     ISPKRepository SPKRepository, ISPKDetailSparepartRepository SPKDetailSparePartRepository,
     ISPKDetailSparepartDetailRepository SPKDetailSparepartDetailRepository, ISparepartRepository sparepartRepository,
     ISparepartDetailRepository sparepartDetailRepository,
     IUsedGoodRepository usedGoodRepository,
     ISpecialSparepartRepository specialSparepartRepository,
     ISpecialSparepartDetailRepository specialSparepartDetailRepository,
     IVehicleWheelRepository vehicleWheelRepository,
     IInvoiceRepository invoiceRepository,
     IInvoiceDetailRepository invoiceDetailRepository,
     IWheelExchangeHistoryRepository WheelExchangeHistoryRepository,
     ISPKScheduleRepository spkScheduleRepository,
     ISparepartStockCardRepository sparepartStokCardRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _settingRepository = settingRepository;
     _referenceRepository = referenceRepository;
     _vehicleRepository = vehicleRepository;
     _SPKRepository = SPKRepository;
     _SPKDetailSparepartRepository = SPKDetailSparePartRepository;
     _SPKDetailSparepartDetailRepository = SPKDetailSparepartDetailRepository;
     _sparepartRepository = sparepartRepository;
     _sparepartDetailRepository = sparepartDetailRepository;
     _usedGoodRepository = usedGoodRepository;
     _specialSparepartDetailRepository = specialSparepartDetailRepository;
     _specialSparepartRepository = specialSparepartRepository;
     _vehicleWheelRepository = vehicleWheelRepository;
     _invoiceRepository = invoiceRepository;
     _invoiceDetailRepository = invoiceDetailRepository;
     _SPKScheduleRepository = spkScheduleRepository;
     _wheelExchangeHistoryRepository = WheelExchangeHistoryRepository;
     _sparepartStokCardRepository = sparepartStokCardRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 12
0
        public SettingsHelper(
            [NotNull] ISettingValuesRepository settingValuesRepository,
            [NotNull] ISettingRepository settingRepository,
            [NotNull] ISettingGroupRepository settingGroupRepository,
            [NotNull] ISettingValidator settingValidator)
        {
            if (settingValuesRepository == null)
            {
                throw new ArgumentNullException(nameof(settingValuesRepository));
            }
            if (settingRepository == null)
            {
                throw new ArgumentNullException(nameof(settingRepository));
            }
            if (settingGroupRepository == null)
            {
                throw new ArgumentNullException(nameof(settingGroupRepository));
            }
            if (settingValidator == null)
            {
                throw new ArgumentNullException(nameof(settingValidator));
            }

            _settingValuesRepository = settingValuesRepository;
            _settingRepository       = settingRepository;
            _settingGroupRepository  = settingGroupRepository;
            _settingValidator        = settingValidator;
        }
        public SettingsViewModel(ILocalSettings localsettingService, ISettingRepository repositoryService)
        {

            OpenDialog = new RelayCommand(() => ExecuteOpenFileDialog());
            DeleteFile = new RelayCommand(() => DeleteSelectedFile());
            TakeBackupCommand = new RelayCommand(() => TakeBackup(), () => TakeBackupCanExecute());
            SaveSettingsCommand = new RelayCommand(() => SaveSettings(), () => SaveSettingsCanExecute());


            this._unitofWork = repositoryService;
            this._localsetting = this._unitofWork.getdata();
            this.ListOFCloudsSupported = new List<string>();
            initView();

            if (this._localsetting != null)
            {
                loaddata();

            }
            else
            {
                this._localsetting = localsettingService;
                this._localCloudAccounts = new List<ILocalCloudAccounts>();
                this.foldersToBackup = new ObservableCollection<string>();

            }

        }
Ejemplo n.º 14
0
 public LogErrorEmailer(ISettingRepository SettingRepository)
 {
     if (SettingRepository == null) {
         throw new ArgumentNullException("SettingRepository");
     }
     this.settingRepository = SettingRepository;
 }
Ejemplo n.º 15
0
 public CardLimitsFactory(ISettingRepository settingRepository, IRepository <Currency> currencyRepository)
 {
     Assert.NotNull("settingRepository", settingRepository);
     Assert.NotNull("currencyRepository", currencyRepository);
     _settingRepository  = settingRepository;
     _currencyRepository = currencyRepository;
 }
Ejemplo n.º 16
0
 public UserManager(IUserRepository userRepository, ISettingRepository settingRepository, IMessageService messageService, ICallService callService)
 {
     _userRepository    = userRepository;
     _settingRepository = settingRepository;
     _messageService    = messageService;
     _callService       = callService;
 }
        public UnitTestAmazonCloud()
        {

            repositoryWPF = new WPFSettingRepository(tr, AEScipher);
            tr = repositoryWPF.getdata();                        
            st = new sAmazonS3(tr);        
        }
Ejemplo n.º 18
0
        public CommentController(ICommentRepository commentRepository, ISettingRepository settingRepository)
        {
            _commentRepository = commentRepository;

            _settingRepository = settingRepository;

            _pageSize = _settingRepository.CommentListPageSize;
        }
Ejemplo n.º 19
0
        public AutocompleteController(IRepository<Category> categoryRepository, IRepository<Tag> tagRepository, ISettingRepository settingRepository)
        {
            _categoryRepository = categoryRepository;
            _tagRepository = tagRepository;

            _settingRepository = settingRepository;

            _listSize = _settingRepository.ListPageSize;
        }
Ejemplo n.º 20
0
		public void TestInitialize()
		{
			_fixture = new Fixture();
			_composition = new CompositionHelper(Settings.Default.MainConnectionString, Settings.Default.FilesConnectionString);
			_settings = _composition.Kernel.Get<ISettingRepository>();
			_serializer = _composition.Kernel.Get<ISerializer>();

			_controller = _composition.Kernel.Get<BillSettingsController>();
		}
Ejemplo n.º 21
0
 public SettingController(IUnitOfWork uow, ISettingRepository RSetting, IUserAccountRepository RDefineUser, 
     IContactInfoRepository ContactInfoRepository,ISeoMngRepository SeoRepository)
 {
     _RSetting = RSetting;
     _RContactInfo = ContactInfoRepository;
     _RDefineUser = RDefineUser;
     _RSeoMng = SeoRepository;
     _uow = uow;
 }
Ejemplo n.º 22
0
        public HomeController( IUserAccountRepository DefineUserRepository,
            ISettingRepository SettingRepository,ISeoMngRepository SeoRepository)
        {
            _RDefineUser = DefineUserRepository;
            _RSetting = SettingRepository;
            _RSeoMng = SeoRepository;

            DefineUserExtentions = new UserAccountExtentions(_RDefineUser);
        }
Ejemplo n.º 23
0
        public ProductController(ISettingRepository SettingRepository, IUserAccountRepository DefineUserRepository,
            IServiceRepository ServiceRepository)
        {
            _RDefineUser = DefineUserRepository;
            _RService = ServiceRepository;
            _RSetting = SettingRepository;

            EService = new ServiceExtentions(_RService, _RDefineUser);
            EDefineUser = new UserAccountExtentions(_RDefineUser);
        }
Ejemplo n.º 24
0
		public BillModelFactory(
			IApplicationRepository applications,
			ICalculationRepository calculations,
			IClientRepository clients,
			ISettingRepository settings)
		{
			_applications = applications;
			_calculations = calculations;
			_clients = clients;
			_settings = settings;
		}
Ejemplo n.º 25
0
		public EuroCourseJob(
			ISettingRepository settings,
			ICourseSource courseSource,
			ISerializer serializer,
			IHolder<DateTimeOffset> previousTime)
		{
			_settings = settings;
			_courseSource = courseSource;
			_serializer = serializer;
			_previousTime = previousTime;
		}
Ejemplo n.º 26
0
        public BlogController(IEntryRepository entryRepository, IRepository<Category> categoryRepository, IRepository<Tag> tagRepository, ISettingRepository settingRepository)
            : base(settingRepository)
        {
            _entryRepository = entryRepository;
            _categoryRepository = categoryRepository;
            _tagRepository = tagRepository;

            _settingRepository = settingRepository;

            _pageSize = _settingRepository.ListPageSize;
        }
Ejemplo n.º 27
0
        public SmsLogger(ISettingRepository settingRepository, IEmailService emailService)
        {
            Argument.NotNull(settingRepository, "settingRepository");
            Argument.NotNull(emailService, "emailService");

            _emailService = emailService;
            _settings = settingRepository.GetOrDefault<SmsLoggerSettings>();
            if (_settings == null)
            {
                throw new InvalidOperationException("Settings for sms logger were not found.");
            }
        }
Ejemplo n.º 28
0
        public MemorySettingContext(ISettingRepository appSettingRepository, ISettingRepository connectionStringRepository)
        {
            #region Contracts

            if (appSettingRepository == null) throw new ArgumentNullException();
            if (connectionStringRepository == null) throw new ArgumentNullException();

            #endregion

            // Initialize
            this.Initialize(appSettingRepository, connectionStringRepository);
        }
 public SPKScheduleEditorModel(ISPKScheduleRepository SPKScheduleRepository, 
     IMechanicRepository mechanicRepository,
     ISPKRepository SPKRepository,
     ISettingRepository settingRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _SPKScheduleRepository = SPKScheduleRepository;
     _mechanicRepository = mechanicRepository;
     _SPKRepository = SPKRepository;
     _settingRepository = settingRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 30
0
 public ImageProcessor(
     IMipMapGenerator mipMapGenerator,
     IImageRepository imageRepository,
     ISettingRepository settingRepository,
     IImageChunkSaver imageChunkSaver,
     IVirtualPathResolver virtualPathResolver)
 {
     _mipMapGenerator = mipMapGenerator;
     _imageRepository = imageRepository;
     _settingRepository = settingRepository;
     _imageChunkSaver = imageChunkSaver;
     _virtualPathResolver = virtualPathResolver;
 }
Ejemplo n.º 31
0
        public WebimModel()
        {
            historyRepository = new HistoryRepository();

            settingRepository = new SettingRepository();

            roomRepository = new RoomRepository();

            memberRepository = new MemberRepository();

            blockRepository = new BlockedRepository();

            visitorRepository = new VisitorRepository();
        }
Ejemplo n.º 32
0
 public LoginService( IUserRepository UserRepository, IHashHelper HashHelper, ISettingRepository SettingRepository )
 {
     if ( UserRepository == null ) {
         throw new ArgumentNullException( "UserRepository" );
     }
     if ( HashHelper == null ) {
         throw new ArgumentNullException( "HashHelper" );
     }
     if ( SettingRepository == null ) {
         throw new ArgumentNullException( "SettingRepository" );
     }
     this.userRepository = UserRepository;
     this.hashHelper = HashHelper;
     this.settingRepository = SettingRepository;
 }
Ejemplo n.º 33
0
 public AdminController(ISettingRepository settingRepository, 
     IEntryRepository entryRepository, 
     IRepository<Tag> tagRepository, 
     IRepository<Category> categoryRepository, 
     ICommentRepository commentRepository, 
     IUserRepository userRepository)
     : base(settingRepository)
 {
     _settingRepository = settingRepository;
     _entryRepository = entryRepository;
     _tagRepository = tagRepository;
     _categoryRepository = categoryRepository;
     _commentRepository = commentRepository;
     _userRepository = userRepository;
 }
Ejemplo n.º 34
0
		public BillManager(
			IApplicationRepository applications,
			ISettingRepository settings,
			IBillRepository bills,
			IBillPdf pdf,
			IAdminRepository admins,
			IMailSender mail)
		{
			_applications = applications;
			_settings = settings;
			_bills = bills;
			_pdf = pdf;
			_admins = admins;
			_mail = mail;
		}
Ejemplo n.º 35
0
 public AdminController(IBlackstonePosService blackstonePosService, 
                     ICashierRepository cashierRepository, 
                     IOrderRepository orderRepository, 
                     ISettingRepository settingRepository, 
                     IPaymentService paymentService, IAchPaymentRepository achPaymentRepository,
                     IAchTransactionRepository achTransactionRepository,IApplicantRepository applicantRepository,  IMeteleService meteleService, IAppLogoRepository appLogoRepository)
 {
     _blackstonePosService = blackstonePosService;
                     _cashierRepository = cashierRepository;
                     _orderRepository = orderRepository;
                     _settingRepository = settingRepository;
                     _paymentService = paymentService;
                    _achPaymentRepository = achPaymentRepository;
                    _achTransactionRepository = achTransactionRepository;
                    _applicantRepository = applicantRepository;
                    _meteleService = meteleService;
                   _appLogoRepository = appLogoRepository;
 }
 public SPKViewDetailModel(IReferenceRepository referenceRepository, IVehicleRepository vehicleRepository,
     ISPKRepository SPKRepository, ISPKDetailSparepartRepository SPKDetailSparePartRepository,
     ISPKDetailSparepartDetailRepository SPKDetailSparepartDetailRepository, ISparepartRepository sparepartRepository,
     ISparepartDetailRepository sparepartDetailRepository,
     ISettingRepository settingRepository,
     IInvoiceRepository invoiceRepository,
     IInvoiceDetailRepository invoiceDetailRepository,
     IUsedGoodRepository usedGoodrepository,
     IUsedGoodTransactionRepository usedGoodTransactionRepository,
     IVehicleWheelRepository vehicleWheelRepository,
     ISPKScheduleRepository SPKScheduleReposistory,
     IMechanicRepository mechanicRepository,
     IWheelExchangeHistoryRepository wheelExchangeHistoryRepository,
     ISpecialSparepartRepository specialSparepartRepository,
     ISpecialSparepartDetailRepository specialSparepartDetailRepository,
     ISparepartStockCardRepository sparepartStockCardRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _referenceRepository = referenceRepository;
     _vehicleRepository = vehicleRepository;
     _SPKRepository = SPKRepository;
     _SPKDetailSparepartRepository = SPKDetailSparePartRepository;
     _SPKDetailSparepartDetailRepository = SPKDetailSparepartDetailRepository;
     _sparepartRepository = sparepartRepository;
     _sparepartDetailRepository = sparepartDetailRepository;
     _settingRepository = settingRepository;
     _invoiceRepository = invoiceRepository;
     _invoiceDetailRepository = invoiceDetailRepository;
     _vehicleWheelRepository = vehicleWheelRepository;
     _usedGoodRepository = usedGoodrepository;
     _usedGoodTransactionRepository = usedGoodTransactionRepository;
     _SPKScheduleRepository = SPKScheduleReposistory;
     _mechanicRepository = mechanicRepository;
     _wheelExchangeHistoryRepository = wheelExchangeHistoryRepository;
     _specialSparepartDetailRepository = specialSparepartDetailRepository;
     _specialSparepartRepository = specialSparepartRepository;
     _sparepartStokCardRepository = sparepartStockCardRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 37
0
 public InvoicingService(IInvoiceRepository invoiceRepository, IAccountRepository accountRepository, 
     IPlanRepository planRepository, INetworkRepository networkRepository, IContractRepository contractRepository, IContactRepository contactRepository,
     ICompanyRepository companyRepository, INumberGeneratorService numberGeneratorService,
     ISettingRepository settingRepository, ICustomFeeRepository customFeeRepository, IInvoiceHardcopyRepository hardcopyRepository, IContractService contractService,
     IInvoiceSettings invoiceSettings, IEwayPaymentsService ewayPaymentsService, IDateTimeFacade dateTime)
 {
     _invoiceRepository = invoiceRepository;
     _accountRepository = accountRepository;
     _planRepository = planRepository;
     _networkRepository = networkRepository;
     _contractRepository = contractRepository;
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
     _numberGeneratorService = numberGeneratorService;
     _settingRepository = settingRepository;
     _contractService = contractService;
     _customFeeRepository = customFeeRepository;
     _invoiceHardcopyRepository = hardcopyRepository;
     _invoiceSettings = invoiceSettings;
     _ewayPaymentsService = ewayPaymentsService;
     _dateTime = dateTime;
 }
Ejemplo n.º 38
0
 public UploadController(ISettingRepository settingsRepository)
 {
     _fileRepository = settingsRepository.ResolveFileService();
 }
        private void CreateRepository()
        {

            this.unitofwork = ServiceLocator.Current.GetInstance<ISettingRepository>();
            this.localsettings = unitofwork.getdata();
            this.repository = new cloudRepository(this.localsettings);

        }