public DeleteActivityHandler(
     IActivitiesRepository activitiesRepository,
     LifeLogContext lifeLogContext)
 {
     _activitiesRepository = activitiesRepository ?? throw new ArgumentNullException(nameof(activitiesRepository));
     _lifeLogContext       = lifeLogContext ?? throw new ArgumentNullException(nameof(lifeLogContext));
 }
 public ChangeActivityRecordOrderHandler(
     ActivityRecordOrderChanger activityRecordOrderChanger,
     LifeLogContext lifeLogContext)
 {
     _activityRecordOrderChanger = activityRecordOrderChanger ?? throw new ArgumentNullException(nameof(activityRecordOrderChanger));
     _lifeLogContext             = lifeLogContext ?? throw new ArgumentNullException(nameof(lifeLogContext));
 }
Ejemplo n.º 3
0
 public DeleteActivityRecordHandler(
     IActivityRecordsRepository activityRecordsRepository,
     ActivityRecordsDeleter activityRecordsDeleter,
     LifeLogContext lifeLogContext)
 {
     _activityRecordsRepository = activityRecordsRepository ?? throw new ArgumentNullException(nameof(activityRecordsRepository));
     _activityRecordsDeleter    = activityRecordsDeleter ?? throw new ArgumentNullException(nameof(activityRecordsDeleter));
     _lifeLogContext            = lifeLogContext ?? throw new ArgumentNullException(nameof(lifeLogContext));
 }
 public CreateActivityHandler(
     ActivitiesCreator activitiesCreator,
     IActivitiesRepository activitiesRepository,
     LifeLogContext lifeLogContext)
 {
     _activitiesCreator    = activitiesCreator;
     _activitiesRepository = activitiesRepository;
     _lifeLogContext       = lifeLogContext;
 }
Ejemplo n.º 5
0
 public CreateDayRecordHandler(
     DayRecordsCreator dayRecordsCreator,
     IDayRecordsRepository dayRecordsRepository,
     LifeLogContext lifeLogContext)
 {
     _dayRecordsCreator    = dayRecordsCreator ?? throw new ArgumentNullException(nameof(dayRecordsCreator));
     _dayRecordsRepository = dayRecordsRepository ?? throw new ArgumentNullException(nameof(dayRecordsRepository));
     _lifeLogContext       = lifeLogContext ?? throw new ArgumentNullException(nameof(_lifeLogContext));
 }
 public CreateOccurrenceActivityRecordHandler(
     IActivityRecordsRepository activityRecordsRepository,
     IActivitiesRepository activitiesRepository,
     LifeLogContext lifeLogContext,
     ActivityRecordCreator activityRecordCreator)
 {
     _activityRecordsRepository = activityRecordsRepository ?? throw new ArgumentNullException(nameof(activityRecordsRepository));
     _activitiesRepository      = activitiesRepository ?? throw new ArgumentNullException(nameof(activitiesRepository));
     _lifeLogContext            = lifeLogContext ?? throw new ArgumentNullException(nameof(lifeLogContext));
     _activityRecordCreator     = activityRecordCreator ?? throw new ArgumentNullException(nameof(activityRecordCreator));
 }
Ejemplo n.º 7
0
        public MainViewModel(
            LifeLogContext dbContext,
            NavigationService navigationService)
        {
            _lifeLogContext    = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
            _navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService));;

            IsApplicationInitialized = false;

            InitializeApplicationCommand = new AsyncCommand(InitializeApplicationCommandExecutionAsync, (ex) => ExceptionDispatchInfo.Capture(ex).Throw());
            ChangePanelCommand           = new AsyncCommand(ChangePanelCommandExecutionAsync, (ex) => ExceptionDispatchInfo.Capture(ex).Throw());


            _navigationService.CurrentPanelChanged += OnCurrentPanelChanged;
        }
Ejemplo n.º 8
0
 public DayRecordsRepository(
     LifeLogContext lifeLogContext)
 {
     _lifeLogContext = lifeLogContext ?? throw new ArgumentNullException(nameof(lifeLogContext));
 }
 public ActivityRecordsRepository(LifeLogContext lifeLogContext)
 {
     _lifeLogContext = lifeLogContext;
 }
Ejemplo n.º 10
0
 public ActivitiesRepository(
     LifeLogContext lifeLogContext)
 {
     _lifeLogContext = lifeLogContext;
 }