コード例 #1
0
 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
ファイル: DashboardController.cs プロジェクト: FishAbe/cats
 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
ファイル: PostController.cs プロジェクト: kevinrjones/mblog
 public PostController(IPostService postService, IDashboardService dashboardService, IBlogService blogService, ILogger logger)
     : base(logger)
 {
     _postService = postService;
     _dashboardService = dashboardService;
     _blogService = blogService;
 }
コード例 #5
0
ファイル: AtomController.cs プロジェクト: kevinrjones/mblog
 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
ファイル: HomeController.cs プロジェクト: FishAbe/cats
 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;
 }
コード例 #9
0
        // 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;
 }
コード例 #13
0
 public DashboardController(IDashboardService dashboardService, IEntityService entityService, IDeviceService deviceService)
 {
     _service       = dashboardService;
     _entityService = entityService;
     _deviceService = deviceService;
 }
コード例 #14
0
 public DashboardAppService(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
コード例 #15
0
 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;
 }
コード例 #17
0
 /// <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;
 }
コード例 #19
0
 public HomeController(ILogger <HomeController> logger, IDashboardService dashboardService)
 {
     _logger           = logger;
     _dashboardService = dashboardService;
 }
コード例 #20
0
 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;
 }
コード例 #24
0
 public DashboardController(IDashboardService dashboardService)
 {
     if (dashboardService == null)
         throw new ArgumentNullException("dashboardService");
     _dashboardService = dashboardService;
 }
コード例 #25
0
 public DashboardCGPrazoMedioPagamentosMesAtual(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
コード例 #26
0
 public DashboardController(IDashboardService dashboardService, IHubContext <DashboardHub> hub)
 {
     _dashboard        = dashboardService.Dashboard;
     _dashboardService = dashboardService;
     _hub = hub;
 }
コード例 #27
0
 public RelatorioRelRelacaoRecebimentos(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
コード例 #28
0
 public DashboardsController(IDashboardService service)
 {
     this.service = service;
 }
コード例 #29
0
 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;
 }
コード例 #31
0
 public DashboardController(ILogger <DashboardController> logger, IDashboardService service)
 {
     Logger  = logger;
     Service = service;
 }
コード例 #32
0
        public DashboardHub(IExecutionService executionService, IMemoryCache memoryCache, StateRequestService stateRequestService, IDashboardService dashboardService)
        {
            Log.Debug("DashboardHub constructor");

            _executionService    = executionService;
            _stateRequestService = stateRequestService;
            _memoryCache         = memoryCache;
            _dashboardService    = dashboardService;
        }
コード例 #33
0
        /// <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;
        }
コード例 #34
0
 public WidgetDialogController(ILogger <WidgetDialogController> logger,
                               IDashboardService service)
 {
     _logger  = logger;
     _service = service;
 }
コード例 #35
0
 public PersonController(IDashboardService dashboardService)
 {
     this.dashboardService = dashboardService;
 }
コード例 #36
0
 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));
 }
コード例 #39
0
 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;
 }
コード例 #41
0
 public DashboardController(IDashboardService dashboardService)
 {
     this.dashboardService = dashboardService;
 }
コード例 #42
0
        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;
        }
コード例 #43
0
 public DashboardController(UserManager <ApplicationUser> userManager, IDashboardService dashboardService)
 {
     this.userManager      = userManager;
     this.dashboardService = dashboardService;
 }
コード例 #44
0
ファイル: HomeController.cs プロジェクト: etopcu/Dashboard
 public HomeController(IDashboardService dashboardService)
 {
     _dashboardService = dashboardService;
 }
コード例 #45
0
 /// <inheritdoc />
 public DashboardController(IConnectionService connectionService, IDashboardService dashboardService)
 {
     _connectionService = connectionService;
     _dashboardService  = dashboardService;
 }