public DeleteErrandCommandHandler(
     IDeratControlDbContext db,
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider) : base(currentDateService, currentUserProvider)
 {
     this.db = db;
 }
 public GetEmployeeErrandListQueryHandler(
     IDeratControlDbContext db,
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider) : base(currentDateService, currentUserProvider)
 {
     this.db = db;
 }
 public GetErrandQueryHandler(
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider,
     IDeratControlDbContext db) : base(currentDateService, currentUserProvider)
 {
     this.db = db;
 }
 public DeratControlDbContext(
     DbContextOptions <DeratControlDbContext> options,
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider) : base(options)
 {
     this.currentDateService = currentDateService;
     User = currentUserProvider?.User;
 }
 public GetErrandListQueryHandler(
     ICurrentUserProvider currentUserProvider,
     ICurrentDateService currentDateService,
     IDeratControlDbContext db,
     IMediator mediator) : base(currentDateService, currentUserProvider)
 {
     this.db       = db;
     this.mediator = mediator;
 }
Ejemplo n.º 6
0
 public GetFacilityListQueryHandler(
     ICurrentUserProvider currentUserProvider,
     IDeratControlDbContext db,
     IMapper mapper,
     ICurrentDateService currentDateService) : base(currentDateService, currentUserProvider)
 {
     this.db     = db;
     this.mapper = mapper;
 }
 public DeleteTrapCommandHandler(
     IMemoryCache cache,
     IDeratControlDbContext db,
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider) : base(currentDateService, currentUserProvider)
 {
     this.cache = cache;
     this.db    = db;
 }
Ejemplo n.º 8
0
        public MainPageViewModel(ICurrentDateService currentDateService)
        {
            _currentDateService = currentDateService;

            GetCurrentDateCommand = new Command(() =>
            {
                CurrentDate = _currentDateService.GetCurrentDate();
                RaisePropertyChanged(nameof(CurrentDate));
            });
        }
 public DeleteSupplementCommandHandler(
     IMemoryCache cache,
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider,
     IDeratControlDbContext db,
     IFileStorage fileStorage) : base(currentDateService, currentUserProvider)
 {
     this.cache       = cache;
     this.db          = db;
     this.fileStorage = fileStorage;
 }
Ejemplo n.º 10
0
 public GetTrapListQueryHandler(
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider,
     IDeratControlDbContext db,
     IMemoryCache cache,
     IMapper mapper) : base(currentDateService, currentUserProvider)
 {
     this.db     = db;
     this.cache  = cache;
     this.mapper = mapper;
 }
Ejemplo n.º 11
0
 public GetSupplementListQueryHandler(
     ICurrentDateService currentDateService,
     ICurrentUserProvider currentUserProvider,
     IDeratControlDbContext db,
     IMapper mapper,
     IMemoryCache cache,
     IFileStorage fileStorage) : base(currentDateService, currentUserProvider)
 {
     this.db          = db;
     this.mapper      = mapper;
     this.cache       = cache;
     this.fileStorage = fileStorage;
 }
Ejemplo n.º 12
0
 public GenerateReportCommandHandler(
     ICurrentUserProvider currentUserProvider,
     ICurrentDateService currentDateService,
     IDeratControlDbContext db,
     IReportBuilder reportBuilder,
     IStringLocalizer <SharedResource> localizer,
     IFileStorage fileStorage) : base(currentDateService, currentUserProvider)
 {
     this.db            = db;
     this.reportBuilder = reportBuilder;
     this.localizer     = localizer;
     this.fileStorage   = fileStorage;
 }
Ejemplo n.º 13
0
 public EditOrderViewModel(
     OrderRepository orderRepository,
     ThreadReferenceRepository threadReferenceRepository,
     ThreadRepository threadRepository,
     IDialogService dialogService,
     ICurrentDateService dateTimeProvider)
     : base(threadReferenceRepository, threadRepository, dialogService)
 {
     _orderRepository     = orderRepository;
     _dateTimeProvider    = dateTimeProvider;
     CompleteOrderCommand = new RelayCommand(OnCompleteOrder);
     CancelOrderCommand   = new RelayCommand(OnCancelOrder, CanCancel);
     MakeOrderCommand     = new RelayCommand(OnMakeOrder, CanMakeOrder);
 }
Ejemplo n.º 14
0
        public HomeViewModel(IDatabaseContextService contextFactory, ICurrentDateService dateTimeProvider, IBackupService backupService)
        {
            _contextFactory   = contextFactory;
            _dateTimeProvider = dateTimeProvider;
            _backupService    = backupService;

            // Warm up the terminal
            contextFactory.GetContext().Invoke();

            ManagePatternsCommand  = new RelayCommand(OnManagePatterns);
            ManageProjectsCommand  = new RelayCommand(OnManageProjects);
            ManageOrdersCommand    = new RelayCommand(OnManageOrders);
            ManageInventoryCommand = new RelayCommand(OnManageInventory);
            BackupDatabaseCommand  = new RelayCommand(OnBackupDatabase);
        }
Ejemplo n.º 15
0
        public EditProjectViewModel(INavigationService navigationService,
                                    PatternRepository patternRepository,
                                    ProjectRepository projectRepository,
                                    IDialogService dialogService,
                                    PatternProjectRepository patternProjectRepository,
                                    ThreadRepository threadRepository,
                                    ICurrentDateService dateTimeProvider)
        {
            SaveCommand               = new RelayCommand(OnSave);
            UpdatePatternsCommand     = new RelayCommand <Project>(OnUpdatePatterns);
            GenerateOrderCommand      = new RelayCommand(OnGenerateOrder, CanGenerateOrder);
            _patternRepository        = patternRepository;
            _projectRepository        = projectRepository;
            _dialogService            = dialogService;
            _patternProjectRepository = patternProjectRepository;
            _threadRepository         = threadRepository;
            _dateTimeProvider         = dateTimeProvider;

            PatternSelectionDto = new PatternSelection();
        }
Ejemplo n.º 16
0
 public UpsertUserCommandHandler(ICurrentDateService currentDateService, ICurrentUserProvider currentUserProvider, IUserManagerService userManagerService) : base(currentDateService, currentUserProvider)
 {
     this.userManagerService = userManagerService;
 }
Ejemplo n.º 17
0
 public HomeController(ICurrentDateServiceFactory currentDateServiceFactory, IUserService userService)
 {
     this.currentDateService = currentDateServiceFactory.GetCurrentDateService();
     this.userService        = userService;
 }
Ejemplo n.º 18
0
 public BackupService(IDatabaseContextService contextFactory, ICurrentDateService dateTimeProvider)
 {
     _contextFactory   = contextFactory;
     _dateTimeProvider = dateTimeProvider;
 }
 public WeatherForecastController(ICurrentDateServiceFactory currentDateServiceFactory, IUserService userService)
 {
     this.systemDateService = currentDateServiceFactory.GetCurrentDateService();
     this.userService       = userService;
 }
Ejemplo n.º 20
0
 public GetEmployeeListQueryHandler(ICurrentDateService currentDateService, ICurrentUserProvider currentUserProvider, IUserManagerService userManager, IMapper mapper) : base(currentDateService, currentUserProvider)
 {
     this.userManager = userManager;
     this.mapper      = mapper;
 }
Ejemplo n.º 21
0
 public BaseRequestHandler(ICurrentDateService currentDateService, ICurrentUserProvider currentUserProvider)
 {
     this.currentDateService  = currentDateService;
     this.currentUserProvider = currentUserProvider;
 }
Ejemplo n.º 22
0
 public IndexModel(ICurrentDateServiceFactory currentDateServiceFactory, IUserService userService)
 {
     this.currentDateService = currentDateServiceFactory.GetCurrentDateService();
     this.userService        = userService;
 }