public BusinessService(IRepository respository)
 {
     this.respository = respository;
     this.searchBusinessService = new SearchService(this.respository);
     this.accessHistoryService = new AccessHistoryService(this.respository);
     this.dashboardService = new DashboardService(this.respository);
 }
示例#2
0
 public DashboardController(INotificationService notificationService, IUserAccountService userAccountService)
 {
     _notificationService = notificationService;
     _userAccountService = userAccountService;
     this._dashboardService = new Cats.Services.EarlyWarning.DashboardService();
     this._needAssessmentSummaryService = new Cats.Services.Common.NeedAssessmentSummaryService();
 }
示例#3
0
        public void SetUp()
        {
            _postServiceMock = new Mock<IPostService>();

            var dashboardDomainMock = new Mock<IDashboardService>();
            _dashboardServiceMock = dashboardDomainMock.Object;

            _postServiceMock.Setup(r => r.GetBlogPosts(It.IsAny<string>())).Returns(posts);
            _postServiceMock.Setup(
                r =>
                r.GetBlogPosts(It.IsAny<int>(), It.IsAny<int>(), It.IsAny<int>(), It.IsAny<string>(), It.IsAny<string>()))
                .Returns(new List<Post>
                             {
                                 new Post
                                     {
                                         Id = 1,
                                         BlogPost = "empty",
                                         Title = "empty",
                                         Posted = DateTime.Today,
                                         Comments =
                                             new List<Comment>
                                                 {
                                                     new Comment {CommentText = "empty", Approved = true},
                                                     new Comment {CommentText = "empty", Approved = false}
                                                 }
                                     }
                             });
            _postServiceMock.Setup(r => r.GetBlogPost(It.IsAny<int>())).Returns(posts[0]);

            _blogService = new Mock<IBlogService>();
            _blogService.Setup(b => b.GetBlog(It.IsAny<string>())).Returns(new Blog {Id = 1});
        }
示例#4
0
 public PostController(IPostService postService, IDashboardService dashboardService, IBlogService blogService, ILogger logger)
     : base(logger)
 {
     _postService = postService;
     _dashboardService = dashboardService;
     _blogService = blogService;
 }
示例#5
0
 public AtomController(IBlogService blogService, IPostService postService, IDashboardService dashboardService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _blogService = blogService;
     _postService = postService;
     _dashboardService = dashboardService;
     _syndicationFeedService = syndicationFeedService;
 }
示例#6
0
        public ShellController([NotNull] UiContext uiContext, [NotNull] IDashboardService dashboardService, IPersistApplicationState statePersistenceProvider)
        {
            if (uiContext == null) throw new ArgumentNullException(nameof(uiContext));
            if (dashboardService == null) throw new ArgumentNullException(nameof(dashboardService));

            this.uiContext = uiContext;
            this.dashboardService = dashboardService;
            this.statePersistence = statePersistenceProvider;
            // this.persistenceOperations = persistenceOperations;
        }
示例#7
0
 public HomeController(IUserDashboardPreferenceService userDashboardPreferenceService,
     IDashboardWidgetService dashboardWidgetService,
     IUserAccountService _userService,
     IUnitOfWork unitOfWork,
     IRegionalRequestService regionalRequestService,
     IReliefRequisitionService reliefRequisitionService, IDashboardService iDashboardService, IUserAccountService userAccountService, INotificationService notificationService)
 {
     _regionalRequestService = regionalRequestService;
     _reliefRequistionService = reliefRequisitionService;
     _IDashboardService = iDashboardService;
     this._userAccountService = userAccountService;
     _notificationService = notificationService;
     _userDashboardPreferenceService = userDashboardPreferenceService;
     _dashboardWidgetService = dashboardWidgetService;
     this.userService = _userService;
     _unitOfWork = unitOfWork;
 }
示例#8
0
 public DashboardController(IMenuItemService menuItemService, IDashboardService dashboardService,
                             IMenuItemRepository menuItemRepository,
                             IDashboardRepository dashboardRepository,
     //IDashboardUserRepository dashboardUserRepository,
                             IApplicationUserRepository ApplicationUserRepository,
                             ICrudRepository<SharedWith> sharedWithRepository,
                             ICrudRepository<DashboardType> dashboardTypeRepository,
       IUnitOfWork<DashboardContext> dashboardUnitOfWork, ICurrentUser currentUser)
 {
     //db = new SJiraContext();
     this._menuItemService = menuItemService;
     this._menuItemRepository = menuItemRepository;
     this._dashboardRepository = dashboardRepository;
     this._dashboardService = dashboardService;
     //this._dashboardUserRepository = dashboardUserRepository;
     this._ApplicationUserRepository = ApplicationUserRepository;
     this._sharedWithRepository = sharedWithRepository;
     this._dashboardTypeRepository = dashboardTypeRepository;
     this._dashboardUnitOfWork = dashboardUnitOfWork;
     this._currentUser = currentUser;
 }
        // TODO Are two images on the medium sized widgets still required?

        public DashboardController(
            [NotNull] IUiContext uiContext,
            [NotNull] IDashboardService dashboardService,
            [NotNull] IApplicationDatabaseService applicationDatabaseService)
        {
            if (uiContext == null)
            {
                throw new ArgumentNullException(nameof(uiContext));
            }

            if (dashboardService == null)
            {
                throw new ArgumentNullException(nameof(dashboardService));
            }

            if (applicationDatabaseService == null)
            {
                throw new ArgumentNullException(nameof(applicationDatabaseService));
            }

            this.chooseBudgetBucketController = uiContext.ChooseBudgetBucketController;
            this.createNewFixedBudgetController = uiContext.CreateNewFixedBudgetController;
            this.createNewSurprisePaymentMonitorController = uiContext.CreateNewSurprisePaymentMonitorController;
            GlobalFilterController = uiContext.GlobalFilterController;

            this.uiContext = uiContext;
            this.dashboardService = dashboardService;

            this.chooseBudgetBucketController.Chosen += OnBudgetBucketChosenForNewBucketMonitor;
            this.createNewFixedBudgetController.Complete += OnCreateNewFixedProjectComplete;
            this.createNewSurprisePaymentMonitorController.Complete += OnCreateNewSurprisePaymentMonitorComplete;

            CorrelationId = Guid.NewGuid();

            RegisterForMessengerNotifications(uiContext.Messenger);
        }
示例#10
0
 public RelatorioRelDRE(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService services, IMapper mapper)
 {
     _services = services;
     _mapper   = mapper;
 }
示例#12
0
 public DashboardCGProjecaoFluxoCaixa(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService dashboardService, IEntityService entityService, IDeviceService deviceService)
 {
     _service       = dashboardService;
     _entityService = entityService;
     _deviceService = deviceService;
 }
示例#14
0
 public DashboardAppService(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public PartnerTracingViewModel(ISettings settings, IDialogService dialogService, IPartnerTracingService tracingService, IDashboardService dashboardService, ILookupService lookupService)
 {
     _settings         = settings;
     _dialogService    = dialogService;
     _tracingService   = tracingService;
     _dashboardService = dashboardService;
     _lookupService    = lookupService;
 }
示例#16
0
 public DashboardResultadosReceitaOperacionalOutras(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardController"/> with all its dependencies.
 /// </summary>
 public DashboardController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, IDashboardService dashboardService, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _dashboardService = dashboardService;
 }
示例#18
0
 public DashboardCGPrazoMedioEstocagem(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public HomeController(ILogger <HomeController> logger, IDashboardService dashboardService)
 {
     _logger           = logger;
     _dashboardService = dashboardService;
 }
 public RelatorioRelPagamentosPorDia(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
示例#21
0
 public BusinessService(IRepository repository)
 {
     searchService = new SearchService(repository);
     historyService = new AccessHistoryService(repository);
     dashboardService = new DashboardService(repository);
 }
 public DashboardResumoSaldoDisponibilidadeSoma(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardResumoResultadoOperacional(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService dashboardService)
 {
     if (dashboardService == null)
         throw new ArgumentNullException("dashboardService");
     _dashboardService = dashboardService;
 }
示例#25
0
 public DashboardCGPrazoMedioPagamentosMesAtual(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService dashboardService, IHubContext <DashboardHub> hub)
 {
     _dashboard        = dashboardService.Dashboard;
     _dashboardService = dashboardService;
     _hub = hub;
 }
 public RelatorioRelRelacaoRecebimentos(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
示例#28
0
 public DashboardsController(IDashboardService service)
 {
     this.service = service;
 }
 public JavaScriptController(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
示例#30
0
 public AccountController(IUserService userService, IProductService productService, IDashboardService dashboardService)
 {
     this.userService      = userService;
     this.productService   = productService;
     this.dashboardService = dashboardService;
 }
 public DashboardController(ILogger <DashboardController> logger, IDashboardService service)
 {
     Logger  = logger;
     Service = service;
 }
        public DashboardHub(IExecutionService executionService, IMemoryCache memoryCache, StateRequestService stateRequestService, IDashboardService dashboardService)
        {
            Log.Debug("DashboardHub constructor");

            _executionService    = executionService;
            _stateRequestService = stateRequestService;
            _memoryCache         = memoryCache;
            _dashboardService    = dashboardService;
        }
        /// <summary>
        /// Note that the application service gets injected into the controller.  Since it's not a 
        /// repository (which gets automatically wired up for dependency injection), the service 
        /// needs to be manually registered within Northwind.Web.CastleWindsor.ComponentRegistrar
        /// </summary>
        public DashboardController(IDashboardService dashboardService) {
            Check.Require(dashboardService != null, "dashboardService may not be null");

            this.dashboardService = dashboardService;
        }
 public WidgetDialogController(ILogger <WidgetDialogController> logger,
                               IDashboardService service)
 {
     _logger  = logger;
     _service = service;
 }
示例#35
0
 public PersonController(IDashboardService dashboardService)
 {
     this.dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
示例#37
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public DashboardController(IDashboardService service, ILogger <DashboardController> logger)
 {
     _logger  = logger;
     _service = service;
 }
示例#38
0
 public HomeController(IApiService api, IReportService reportService, IDashboardService dashboardService)
 {
     _api              = api ?? throw new ArgumentNullException(nameof(api));
     _reportService    = reportService ?? throw new ArgumentNullException(nameof(reportService));
     _dashboardService = dashboardService ?? throw new ArgumentNullException(nameof(dashboardService));
 }
 public PartnerScreeningViewModel(ISettings settings, IDialogService dialogService,
                                  IPartnerScreeningService partnerScreeningService, IDashboardService dashboardService,
                                  ILookupService lookupService)
 {
     _settings                = settings;
     _dialogService           = dialogService;
     _partnerScreeningService = partnerScreeningService;
     _dashboardService        = dashboardService;
     _lookupService           = lookupService;
     AllowScreening           = AllowEligibility = true;
     MakeEligibile            = false;
     BookingDate              = ScreeningDate = DateTime.Today;
     Validator                = new ValidationHelper();
 }
示例#40
0
 public DashboardPRPagamentosPessoa(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
 public DashboardController(IDashboardService dashboardService)
 {
     this.dashboardService = dashboardService;
 }
        public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            CardNotificationService cardNotificationService,
            INotesService notesService,
            ICheckListProcessService checkListProcessService,
            ICustomerDecisionProcessService customerDecisionProcessService,
            IProposalDocumentProcessService proposalStatusProcessService,
            INewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IStartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper,
            GraphTeamsOnBehalfService graphTeamsOnBeahalfService,
            IMemberService memberService,
            ITeamChannelService teamChannelService,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(notesService, nameof(notesService));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(newOpportunityProcessService, nameof(newOpportunityProcessService));
            Guard.Against.Null(startProcessService, nameof(startProcessService));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(dashboardAnalysis, nameof(dashboardAnalysis));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;

            _cardNotificationService        = cardNotificationService;
            _checkListProcessService        = checkListProcessService;
            _customerDecisionProcessService = customerDecisionProcessService;
            _proposalStatusProcessService   = proposalStatusProcessService;
            _newOpportunityProcessService   = newOpportunityProcessService;
            _startProcessService            = startProcessService;
            _dashboardService          = dashboardService;
            _authorizationService      = authorizationService;
            _permissionRepository      = permissionRepository;
            _graphTeamsAppService      = graphTeamsAppService;
            _dashboardAnalysis         = dashboardAnalysis;
            _addInHelper               = addInHelper;
            _graphTeamsOnBehalfService = graphTeamsOnBeahalfService;
            _azureKeyVaultService      = azureKeyVaultService;

            _memberService      = memberService;
            _teamChannelService = teamChannelService;
            _notesService       = notesService;
        }
 public DashboardController(UserManager <ApplicationUser> userManager, IDashboardService dashboardService)
 {
     this.userManager      = userManager;
     this.dashboardService = dashboardService;
 }
示例#44
0
 public HomeController(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
示例#45
0
 /// <inheritdoc />
 public DashboardController(IConnectionService connectionService, IDashboardService dashboardService)
 {
     _connectionService = connectionService;
     _dashboardService  = dashboardService;
 }