public UnknownActivityNotificationPopupViewModel(
            IActivitiesRepository activitiesRepository,
            IActivityRecordsRepository activityRecordsRepository)
        {
            _activitiesRepository = activitiesRepository;
            _activityRecordsRepository = activityRecordsRepository;

            _activityRecords = new ObservableCollection<ActivityRecord>();

            OkCommand = new RelayCommand(UpdateActivityRecord, CanUpdateActivityRecord);
        }
        public UserActivityTracker(
            IActivityRecordsRepository activityRecordsRepository,
            IActivitiesRepository activitiesRepository,
            IActivityTrackingSettings settings,
            IUserInputTracker inputTracker)
        {
            _activityRecordsRepository = activityRecordsRepository;
            _settings = settings;
            _inputTracker = inputTracker;

            List<Activity> activities = activitiesRepository.GetActivities().ToList();
            _defaultActivity = activities[0];
            _breakActivity = activities[1];
            _homeActivity = activities[5];
        }
Exemple #3
0
 public AddCommand(ILogger <AddCommand> logger, IActivitiesRepository activitiesRepository) =>
 (_logger, _activitiesRepository) = (logger, activitiesRepository)
Exemple #4
0
 public ScheduleActivitiesWhenSavedActivity(IActivitiesRepository activitiesRepository)
 {
     _activitiesRepository = activitiesRepository;
 }
Exemple #5
0
 public clsProjectActivityPlan(IProjectPlanRepository projectplanrepository, IProjectActivityPlanRepository projectactivityplanrepository, IActivitiesRepository activitiesrepository, ClsMail mail)
 {
     this.ProjectActivityPlanRepository = projectactivityplanrepository;
     this.ActivitiesRepository          = activitiesrepository;
     this.ProjectPlanRepository         = projectplanrepository;
     this.Mail = mail;
 }
 public ActivitiesController(IActivitiesRepository activitiesRepository)
 {
     _activitiesRepository = activitiesRepository;
 }
 public ActivitiesController(IConfiguration configuration, IActivitiesRepository activitiesRepository)
 {
     _configuration        = configuration;
     _activitiesRepository = activitiesRepository;
 }
Exemple #8
0
 public ActivitiesManager(IActivitiesRepository activitiesrepository)
 {
     _activitiesRepository = activitiesrepository;
 }
Exemple #9
0
 public ActivitiesListQueryHandler(IActivitiesRepository repository)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
        public ActivityType GetActivityType(int activityId)
        {
            IActivitiesRepository activitiesRepository = this.persistanceContext.GetActivitiesRepository();

            return(activitiesRepository.GetById(activityId).ActivityType);
        }
 public ReportDataService(IActivitiesRepository activitiesRepository)
 {
     _activitiesRepository = activitiesRepository;
 }
Exemple #12
0
 public void SetUp()
 {
     _activitiesRepository = ServiceProvider.GetService <IActivitiesRepository>();
     _dbContext            = ServiceProvider.GetService <ApplicationDbContext>();
 }
Exemple #13
0
 public EditCommandHandler(IActivitiesRepository repository)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
 public ActivitiesController(IActivitiesRepository ActivitiesRepository)
 {
     this.repository = ActivitiesRepository;
 }
 public ActivitiesController(IActivitiesRepository repo, IMapper mapper)
 {
     _Repo   = repo;
     _Mapper = mapper;
 }
        public void AddActivity(Activity activity)
        {
            IActivitiesRepository activitiesRepository = this.persistanceContext.GetActivitiesRepository();

            activitiesRepository.Add(activity);
        }
Exemple #17
0
 public CreateCommandHandlerTest()
 {
     _activitiesRepository = Substitute.For <IActivitiesRepository>();
     _handler = new CreateCommandHandler(_activitiesRepository);
 }
        public IEnumerable <Activity> GetAllActivities()
        {
            IActivitiesRepository activitiesRepository = this.persistanceContext.GetActivitiesRepository();

            return(activitiesRepository.GetAll());
        }
Exemple #19
0
 public clsActivityTemplate(IActivitiesRepository activitiesrepository)
 {
     this.ActivitiesRepository = activitiesrepository;
 }
 public BrowseActivitiesForDayRecordPanelHandler(
     IActivitiesRepository activitiesRepository)
 {
     _activitiesRepository = activitiesRepository;
 }
 public ActivityService(IActivitiesRepository activitiesRepo)
 {
     _activitiesRepo = activitiesRepo;
 }