Exemplo n.º 1
0
        public DeleteNonReferencedProjectGhostsState(IProjectsSource projectsDataSource, ITimeEntriesSource timeEntriesDataSource)
        {
            Ensure.Argument.IsNotNull(projectsDataSource, nameof(projectsDataSource));
            Ensure.Argument.IsNotNull(timeEntriesDataSource, nameof(timeEntriesDataSource));

            this.projectsDataSource    = projectsDataSource;
            this.timeEntriesDataSource = timeEntriesDataSource;
        }
        public GetProjectsAutocompleteSuggestions(IProjectsSource dataSource, IList <string> wordsToQuery)
        {
            Ensure.Argument.IsNotNull(dataSource, nameof(dataSource));
            Ensure.Argument.IsNotNull(wordsToQuery, nameof(wordsToQuery));

            this.dataSource   = dataSource;
            this.wordsToQuery = wordsToQuery;
        }
        public CreateGhostProjectsState(
            IProjectsSource dataSource,
            IAnalyticsService analyticsService)
        {
            Ensure.Argument.IsNotNull(dataSource, nameof(dataSource));
            Ensure.Argument.IsNotNull(analyticsService, nameof(analyticsService));

            this.dataSource       = dataSource;
            this.analyticsService = analyticsService;
        }
        public TryFetchInaccessibleProjectsState(
            IProjectsSource dataSource,
            ITimeService timeService,
            IProjectsApi projectsApi)
        {
            Ensure.Argument.IsNotNull(dataSource, nameof(dataSource));
            Ensure.Argument.IsNotNull(timeService, nameof(timeService));
            Ensure.Argument.IsNotNull(projectsApi, nameof(projectsApi));

            this.dataSource  = dataSource;
            this.timeService = timeService;
            this.projectsApi = projectsApi;
        }