Ejemplo n.º 1
0
 public FeeService(IBookingManager client, ISessionBagService sessionBagService, IBookingService bookingService, IResourcesService resourceService, IOptions <AppSettings> appSettings) : base(appSettings)
 {
     _client            = client ?? throw new ArgumentNullException(nameof(client));
     _sessionBagService = sessionBagService ?? throw new ArgumentNullException(nameof(sessionBagService));
     _resourceService   = resourceService ?? throw new ArgumentNullException(nameof(resourceService));
     _bookingService    = bookingService ?? throw new ArgumentNullException(nameof(bookingService));
 }
Ejemplo n.º 2
0
        public PresenterMin(
            IViewMin viewMin,
            IViewMain viewMain,
            IResourcesService resources)
        {
            _viewMin   = viewMin;
            _viewMain  = viewMain;
            _resources = resources;

            //set initial form settings
            if (_viewMin != null)
            {
                _viewMin.VisibilityFormIcon1(false);
                _viewMin.VisibilityFormIcon2(false);
                _viewMin.StartPosition = FormStartPosition.Manual;
                if (_resources != null)
                {
                    _viewMin.SetImageFormIcon3(_resources.Closed);
                }
                _viewMin.FormResizable    = false;
                _viewMin.FormMovable      = false;
                _viewMin.SnapToScreenEdge = false;

                //subscribe to events
                _viewMin.VisibleChanged          += OnVisibleChanged;
                _viewMin.MouseEntersFormIcon3    += OnMouseEntersFormIcon3;
                _viewMin.MouseLeavesFormIcon3    += OnMouseLeavesFormIcon3;
                _viewMin.MouseClicksFormIcon3    += OnMouseClicksFormIcon3;
                _viewMin.MouseEnterLabelTitleTop += OnMouseEnterLabelTitleTop;
            }

            _clipboard         = new Clipboard();
            Clipboard.Changed += Clipboard_Changed;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of
        /// type JournalsService.
        /// </summary>
        /// <param name="JournalsRepository"></param>
        /// <param name="languageService"></param>
        /// <param name="unitOfWork"></param>
        public JournalsService(
            //ICurrentUserService currentUserService,
            //ISettingsService settingsService,
            IBankMovementsRepository bankMovementsRepository,
            IPaymentMovmentsRepository paymentMovmentsRepository,
            IPurchaseInvoicesRepository purchaseInvoicesRepository,
            IPurchaseRebatesRepository purchaseRebatesRepository,
            IDonationsRepository donationsRepository,
            ISalesBillRepository salesBillRepository,
            ISalesRebatesRepository salesRebatesRepository,

            IJournalsRepository JournalsRepository,
            ITransactionsRepository transactionsRepository,
            IAccountChartsRepository accountChartsRepository,
            ILanguageService languageService,
            IResourcesService resourcesService,
            IUnitOfWork unitOfWork)
        {
            //this._currentUserService = currentUserService;
            //this._settingsService = settingsService;
            this._bankMovementsRepository    = bankMovementsRepository;
            this._paymentMovmentsRepository  = paymentMovmentsRepository;
            this._purchaseInvoicesRepository = purchaseInvoicesRepository;
            this._purchaseRebatesRepository  = purchaseRebatesRepository;
            this._donationsRepository        = donationsRepository;
            this._salesBillRepository        = salesBillRepository;
            this._salesRebatesRepository     = salesRebatesRepository;

            this._JournalsRepository      = JournalsRepository;
            this._transactionsRepository  = transactionsRepository;
            this._accountChartsRepository = accountChartsRepository;
            this._languageService         = languageService;
            this._resourcesService        = resourcesService;
            this._unitOfWork = unitOfWork;
        }
Ejemplo n.º 4
0
        public BoardFactory(Context context)
        {
            _context = context;

            _view      = _context.services.view;
            _resources = _context.services.resources;
        }
Ejemplo n.º 5
0
        public PresenterAbout(IViewAbout viewAbout,
                              IResourcesService resources)
        {
            _viewAbout = viewAbout;
            _resources = resources;

            //set initial form settings
            if (_viewAbout == null)
            {
                return;
            }
            _viewAbout.Size          = new Size(660, 423);
            _viewAbout.StartPosition = FormStartPosition.CenterScreen;
            if (_resources != null)
            {
                _viewAbout.SetImageFormIcon1(_resources.Closed);
            }
            _viewAbout.VisibilityFormIcon2(false);
            _viewAbout.VisibilityFormIcon3(false);
            _viewAbout.FormResizable = false;
            _viewAbout.Size          = new Size(449, 229);

            //subscribe to events
            _viewAbout.Load += OnLoadedViewAboutSettings;
            _viewAbout.MouseEntersFormIcon1 += OnMouseEntersFormIcon1;
            _viewAbout.MouseLeavesFormIcon1 += OnMouseLeavesFormIcon1;
            _viewAbout.MouseClicksFormIcon1 += OnMouseClicksFormIcon1;
            _viewAbout.ClickedOkButton      += OnClickedOkButton;
        }
Ejemplo n.º 6
0
 public ResourcesController(
     IResourcesService resourcesService,
     IInMemoryCache inMemoryCache)
 {
     _resourcesService = resourcesService;
     _inMemoryCache    = inMemoryCache;
 }
 public ConfigurationsService(IDataProvider <ConfigurationRunProperties, Configuration> provider, IProceduresService proceduresService, IResourcesService resourcesService,
                              IBestConfigurationCalculator calculator)
 {
     _provider          = provider;
     _proceduresService = proceduresService;
     _resourcesService  = resourcesService;
     _calculator        = calculator;
 }
Ejemplo n.º 8
0
        public async Task <IActionResult> GetResourcesByRule([FromRoute] int id, [FromServices] IResourcesService _resourcesService)
        {
            var res = await _resourcesService.ListByRuleKey(id);

            var resD = _mapper.Map <IEnumerable <Resource>, IEnumerable <ResourceMaxDto> >(res);

            return(Ok(resD));
        }
Ejemplo n.º 9
0
        void Initialize(
            [Inject] IResourcesService resourcesService
            )
        {
            _resourcesService = resourcesService;

            this.OnEvent <PreloadResourcesCommand>().Subscribe(e => PreloadResourcesCommandHandler(e)).AddTo(this);
            this.OnEvent <UnloadResourcesCommand>().Subscribe(e => UnloadResourcesCommandHandler(e)).AddTo(this);
        }
Ejemplo n.º 10
0
 public SearchController(IAnswerService answerService, UserManager <ApplicationUser> userManager, IResourcesService resourcesService,
                         ILoggerFactory loggerFactory)
 {
     _userManager      = userManager;
     _resourcesService = resourcesService;
     _answerService    = answerService;
     _logger           = loggerFactory.CreateLogger <SearchController>();
     _logger.LogInformation("created SearchController");
 }
Ejemplo n.º 11
0
 public ContactController(UserManager <ApplicationUser> userManager, IResourcesService resourcesService, IEmailSender emailSender,
                          ILoggerFactory loggerFactory)
 {
     _userManager      = userManager;
     _resourcesService = resourcesService;
     _emailSender      = emailSender;
     _logger           = loggerFactory.CreateLogger <HomeController>();
     _logger.LogInformation("created ContactController");
 }
Ejemplo n.º 12
0
        public ResourcesController(IResourcesService ls)
        {
            if (ls == null)
            {
                throw new ArgumentNullException("LinkService is not implemented");
            }

            _ls = ls;
        }
Ejemplo n.º 13
0
 public FlagController(IUserService userService, IFlagService flagService, IResourcesService resourcesService,
                       ILoggerFactory loggerFactory, IStatisticsService statisticsService)
 {
     _flagService      = flagService;
     _resourcesService = resourcesService;
     _logger           = loggerFactory.CreateLogger <FlagController>();
     _userService      = userService;
     _logger.LogInformation("created FlagController");
     _statisticsService = statisticsService;
 }
Ejemplo n.º 14
0
 public VoteController(IUserService userService, IVoteService voteService, IResourcesService resourcesService,
                       ILoggerFactory loggerFactory, IStatisticsService statisticsService)
 {
     _userService      = userService;
     _voteService      = voteService;
     _resourcesService = resourcesService;
     _logger           = loggerFactory.CreateLogger <VoteController>();
     _logger.LogInformation("created VoteController");
     _statisticsService = statisticsService;
 }
 public ResourcesController(
     IFeatureManager featureManager,
     IConfiguration configuration,
     IResourcesService resourcesService
     )
 {
     this.featureManager   = featureManager;
     this.configuration    = configuration;
     this.resourcesService = resourcesService;
 }
Ejemplo n.º 16
0
 public MainPageViewModel(ISerializationService serializationService, IFileService fileService, INavigationService navigationService, IGlobalizationService globalizationService, ISettingsService settingService, IResourcesService resourcesService)
 {
     this.Items = new ObservableCollection <Group <RepoItem> >();
     this.serializationService = serializationService;
     this.fileService          = fileService;
     this.navigationService    = navigationService;
     this.globalizationService = globalizationService;
     this.settingsService      = settingService;
     this.resourcesService     = resourcesService;
     this.ItemDetailsCommand   = new DelegateCommand(NavigateToItemDetails);
 }
Ejemplo n.º 17
0
 public UsersSettingsHandler(IUsersProvider provider
                             , IUsersService service
                             , ITokensService tokensService
                             , IResourcesService resourcesService
                             , IMapper mapper)
 {
     _service          = service;
     _provider         = provider;
     _tokensService    = tokensService;
     _resourcesService = resourcesService;
     _mapper           = mapper;
 }
Ejemplo n.º 18
0
        public ResourceServiceTest()
        {
            _dbResources = new List <Data.Model.Resource>();

            var resourceRepositoryMock = CreateMockResourceRepository();
            var mapper = new MapperConfiguration(c =>
            {
                c.AddProfile <ResourceProfile>();
            }).CreateMapper();

            _resourceService = new ResourcesService(resourceRepositoryMock.Object, mapper);
        }
Ejemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of
 /// type TransactionsService.
 /// </summary>
 /// <param name="TransactionsRepository"></param>
 /// <param name="unitOfWork"></param>
 public TransactionsService(
     IResourcesService resourcesService,
     ITransactionsRepository TransactionsRepository,
     IAccountChartsRepository AccountChartsRepository,
     ILanguageService languageService,
     IUnitOfWork unitOfWork)
 {
     this._resourcesService        = resourcesService;
     this._TransactionsRepository  = TransactionsRepository;
     this._AccountChartsRepository = AccountChartsRepository;
     this._languageService         = languageService;
     this._unitOfWork = unitOfWork;
 }
Ejemplo n.º 20
0
 public FlightsService(ISessionBagService sessionBag, IUserSessionService userSessionService, IBookingManager client,
                       IResourcesService resourcesService, IBookingService bookingService, ILogger <FlightsService> logger,
                       IOptions <AppSettings> appSettings, IPassengersService passengerService, ISsrsService ssrsService) : base(appSettings)
 {
     _sessionBag         = sessionBag ?? throw new ArgumentNullException(nameof(sessionBag));
     _userSessionService = userSessionService ?? throw new ArgumentNullException(nameof(userSessionService));
     _resourcesService   = resourcesService ?? throw new ArgumentNullException(nameof(resourcesService));
     _bookingService     = bookingService ?? throw new ArgumentNullException(nameof(bookingService));
     _bookingSettings    = appSettings.Value.AvailabilitySettings;
     _passengerService   = passengerService ?? throw new ArgumentNullException(nameof(passengerService));
     _ssrsService        = ssrsService ?? throw new ArgumentNullException(nameof(ssrsService));
     _perfLogSettings    = appSettings.Value.PerformanceLoggingSettings ?? throw new ArgumentNullException(nameof(appSettings));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _client             = client ?? throw new ArgumentNullException(nameof(client));
 }
Ejemplo n.º 21
0
 public AnswerActionController(IAnswerDescriptionService answerDescriptionService,
                               IProfanityService profanityService, IAnswerService answerService, IResourcesService resourcesService, IUserService userService,
                               IVoteService voteService, ILoggerFactory loggerFactory, IOptions <AppSettings> appSettings, IStatisticsService statisticsService)
 {
     _userService = userService;
     _answerDescriptionService = answerDescriptionService;
     _profanityService         = profanityService;
     _answerService            = answerService;
     _resourcesService         = resourcesService;
     _voteService       = voteService;
     _appSettings       = appSettings;
     _statisticsService = statisticsService;
     _logger            = loggerFactory.CreateLogger <HomeController>();
     _logger.LogInformation("created AnswerActionController");
 }
 public CreateAnswerController(IAnswerService answerService, IProfanityService profanityService,
                               ISuggestionService suggestionService, IUserService userService, IAntiforgery antiforgery,
                               IStatisticsService statisticsService, IResourcesService resourcesService,
                               ILoggerFactory loggerFactory)
 {
     _answerService     = answerService;
     _profanityService  = profanityService;
     _suggestionService = suggestionService;
     _userService       = userService;
     _antiforgery       = antiforgery;
     _statisticsService = statisticsService;
     _resourcesService  = resourcesService;
     _logger            = loggerFactory.CreateLogger <CreateAnswerController>();
     _logger.LogInformation("created CreateAnswerController");
 }
Ejemplo n.º 23
0
 public HomeController(IAnswerService answerService, IAnswerDescriptionService answerDescriptionService,
                       IResourcesService resourcesService, IUserService userService, IVoteService voteService,
                       ILoggerFactory loggerFactory, IOptions <AppSettings> appSettings, IHelpItemService helpItemService,
                       ISearchEntryService searchEntryService)
 {
     _userService              = userService;
     _answerService            = answerService;
     _answerDescriptionService = answerDescriptionService;
     _resourcesService         = resourcesService;
     _voteService              = voteService;
     _helpItemService          = helpItemService;
     _appSettings              = appSettings;
     _searchEntryService       = searchEntryService;
     _logger = loggerFactory.CreateLogger <HomeController>();
     _logger.LogInformation("created HomeController");
 }
Ejemplo n.º 24
0
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager,
                          IEmailSender emailSender, ISmsSender smsSender, IUserService userService, IProfanityService profanityService,
                          ILoggerFactory loggerFactory, IResourcesService resourcesService, IBlobService blobService,
                          IStatisticsService statisticsService)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _emailSender       = emailSender;
     _smsSender         = smsSender;
     _logger            = loggerFactory.CreateLogger <AccountController>();
     _userService       = userService;
     _profanityService  = profanityService;
     _resourcesService  = resourcesService;
     _blobService       = blobService;
     _statisticsService = statisticsService;
 }
Ejemplo n.º 25
0
 public UsersService(IUsersRepository repository
                     , IChangePasswordRequestRepository changePasswordRepository
                     , IChangeEmailRequestRepository changeEmailRepository
                     , IPasswordService passwordService
                     , IMapper mapper
                     , IResourcesService resourcesService
                     , IEmailNotificationsService emailNotificationsService)
 {
     _repository = repository;
     _changePasswordRepository = changePasswordRepository;
     _changeEmailRepository    = changeEmailRepository;
     _passwordService          = passwordService;
     _mapper                    = mapper;
     _resourcesService          = resourcesService;
     _emailNotificationsService = emailNotificationsService;
 }
        /// <summary>
        /// Initializes a new instance of
        /// type TransactionsService.
        /// </summary>
        /// <param name="TransactionsRepository"></param>
        /// <param name="unitOfWork"></param>
        public CostCenterReportsService(
            IResourcesService resourcesService,
            IBankMovementsRepository bankMovementsRepository,
            IPaymentMovmentsRepository paymentMovmentsRepository,
            IPurchaseInvoicesRepository purchaseInvoicesRepository,
            IPurchaseRebatesRepository purchaseRebatesRepository,
            IDonationsRepository donationsRepository,
            ISalesBillRepository salesBillRepository,
            ISalesRebatesRepository salesRebatesRepository,
            //IStoreMovementsRepository storeMovementsRepository,
            ICurrentUserService currentUserService,
            IInventoryMovementsRepository inventoryMovementsRepository,
            ISettingsService settingsService,
            IJournalsRepository JournalsRepository,
            IVendorsRepository vendorsRepository,
            IBanksRepository banksRepository,
            ICostCentersRepository costCentersRepository,
            ICurrencyRatesService currencyRatesService,

            ITransactionsRepository TransactionsRepository,
            IAccountChartsRepository AccountChartsRepository,
            ILanguageService languageService,
            IUnitOfWork unitOfWork)
        {
            this._resourcesService           = resourcesService;
            this._bankMovementsRepository    = bankMovementsRepository;
            this._paymentMovmentsRepository  = paymentMovmentsRepository;
            this._purchaseInvoicesRepository = purchaseInvoicesRepository;
            this._purchaseRebatesRepository  = purchaseRebatesRepository;
            this._donationsRepository        = donationsRepository;
            this._salesBillRepository        = salesBillRepository;
            this._salesRebatesRepository     = salesRebatesRepository;
            //this._storeMovementsRepository = storeMovementsRepository;
            this._currentUserService           = currentUserService;
            this._inventoryMovementsRepository = inventoryMovementsRepository;
            this._settingsService       = settingsService;
            this._vendorsRepository     = vendorsRepository;
            this._banksRepository       = banksRepository;
            this._costCentersRepository = costCentersRepository;
            this._currencyRatesService  = currencyRatesService;

            this._TransactionsRepository  = TransactionsRepository;
            this._AccountChartsRepository = AccountChartsRepository;
            this._languageService         = languageService;
            this._unitOfWork = unitOfWork;
        }
Ejemplo n.º 27
0
 /// <summary>
 /// Initializes a new instance of
 /// type TransactionsService.
 /// </summary>
 /// <param name="unitOfWork"></param>
 public DonationCaseReportsService(
     IResourcesService resourcesService,
     IDonationsRepository donationsRepository,
     IDonationCasesRepository donationCasesRepository,
     ICurrentUserService currentUserService,
     ISettingsService settingsService,
     ILanguageService languageService,
     IUnitOfWork unitOfWork)
 {
     this._resourcesService        = resourcesService;
     this._donationsRepository     = donationsRepository;
     this._donationCasesRepository = donationCasesRepository;
     this._currentUserService      = currentUserService;
     this._settingsService         = settingsService;
     this._languageService         = languageService;
     this._unitOfWork = unitOfWork;
 }
Ejemplo n.º 28
0
        public UserController(IUserService userService, IResourcesService resourcesService, IBookingsService bookingsService)
        {
            this.userService      = userService;
            this.resourcesService = resourcesService;
            this.bookingsService  = bookingsService;

            mapper = new Mapper(new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <ApplicationUser, AuthRegisterDto>().ReverseMap().ForMember(dest => dest.PasswordHash, opt => opt.MapFrom(src => src.Password));
                cfg.CreateMap <UserMinimalDto, ApplicationUser>().ReverseMap();
                cfg.CreateMap <AdminRegisterDTO, ApplicationUser>().ReverseMap();
                cfg.CreateMap <List <ApplicationUser>, List <UserMinimalDto> > ().ReverseMap();
                cfg.CreateMap <List <UserMinimalDto>, List <ApplicationUser> > ().ReverseMap();
                cfg.CreateMap <UserUpdateDTO, ApplicationUser>().ReverseMap();
                cfg.CreateMap <Resource, ResourceMaxDto>().ReverseMap();
                cfg.CreateMap <Booking, BookingOwnerDTO>();
            }));
        }
        public PresenterUserSettings(IViewUserSettings viewUserSettings,
                                     IResourcesService resources)
        {
            _viewUserSettings = viewUserSettings;
            _resources        = resources;

            //set initial form settings
            if (_viewUserSettings == null)
            {
                return;
            }
            _viewUserSettings.Size          = new Size(1200, 800);
            _viewUserSettings.StartPosition = FormStartPosition.CenterScreen;
            if (_resources != null)
            {
                _viewUserSettings.SetImageFormIcon1(_resources.Closed);
            }
            _viewUserSettings.VisibilityFormIcon2(false);
            _viewUserSettings.VisibilityFormIcon3(false);

            //subscribe to events
            _viewUserSettings.Load += OnLoadedViewUserSettings;
        }
        /// <summary>
        /// Initializes a new instance of
        /// type TransactionsService.
        /// </summary>
        /// <param name="TransactionsRepository"></param>
        /// <param name="unitOfWork"></param>
        public InventoryReportsService(
            IResourcesService resourcesService,
            IInventorysRepository inventorysRepository,
            ICurrentUserService currentUserService,
            IInventoryMovementsRepository inventoryMovementsRepository,
            IBrandsRepository brandsRepository,
            IMeasurementUnitsRepository measurementUnitsRepository,
            IProductsRepository productsRepository,
            ISettingsService settingsService,
            ILanguageService languageService,
            IUnitOfWork unitOfWork)
        {
            this._resourcesService             = resourcesService;
            this._inventorysRepository         = inventorysRepository;
            this._currentUserService           = currentUserService;
            this._inventoryMovementsRepository = inventoryMovementsRepository;
            this._brandsRepository             = brandsRepository;
            this._measurementUnitsRepository   = measurementUnitsRepository;
            this._productsRepository           = productsRepository;
            this._settingsService = settingsService;

            this._languageService = languageService;
            this._unitOfWork      = unitOfWork;
        }
Ejemplo n.º 31
0
 public ResourceController(IResourcesService resourcesService)
 {
     _resourcesService = resourcesService;
 }
Ejemplo n.º 32
0
 public SettingsService(IResourcesService resourcesService)
 {
     this.resourcesService = resourcesService;
 }