Exemple #1
0
 public EventsController(IEventServices eventService, IOrderServices orderService, UserManager <EvUser> userManager)
 {
     this.eventService = eventService;
     this.orderService = orderService;
     this._userManager = userManager;
 }
Exemple #2
0
 public EventController(IEventServices eventServices)
 {
     this.eventServices = eventServices;
 }
        public ModifyEventViewModel(Event eventToModify, ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy, IPersonServices personProxy)
        {
            ModifyEventCommand       = new RelayCommand(ModifyEventExecute, ModifyEventCanExecute);
            AddPraticipantCommand    = new RelayCommand(AddPraticipantExecute, AddPraticipantCanExecute);
            RemovePraticipantCommand = new RelayCommand(RemovePraticipantExecute, RemovePraticipantCanExecute);
            EventList  = eventList;
            PeopleList = peopleList;

            EventProxy  = eventProxy;
            PersonProxy = personProxy;

            EventToModify               = eventToModify;
            PersonToParticipate         = new Person();
            PersonToRevokeParticipation = new Person();
            AvailablePeople             = new ObservableCollection <Person>(PersonProxy.GetAllPeople().Where(p => p.IsAvailableForEvent(EventToModify.ScheduledDateTimeBeging, EventToModify.ScheduledDateTimeEnd)));
            Participants = new ObservableCollection <Person>(EventToModify.Participants);
        }
 public BusinessController(IBusinessServices businessServices, AppDbContext context,
                           ILogger <BusinessController> logger, IAddressServices addressServices, IEventServices eventServices,
                           IEventTypeServices eventTypeServices)
 {
     _eventServices     = eventServices;
     _businessServices  = businessServices;
     _context           = context;
     _logger            = logger;
     _addressServices   = addressServices;
     _eventTypeServices = eventTypeServices;
 }
 public AdminController(IMemberServices services, IDepartmentService departmentService, IWorkerServices worker, IMemberServices member, ISermonServices sermon, ApplicationDbContext applicationDb, IEventServices eventServices, ISermonCategoryServ sermonCategory)
 {
     _memberServices = services;
     _dtservice      = departmentService;
     _event          = eventServices;
     _sermonServices = sermon;
     _workServ       = worker;
     _context        = applicationDb;
     _sermonCategory = sermonCategory;
 }
        public AddEventViewModel(ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy, IPersonServices personProxy)
        {
            AddEventCommand          = new RelayCommand(AddEventExecute, AddEventCanExecute);
            AddPraticipantCommand    = new RelayCommand(AddPraticipantExecute, AddPraticipantCanExecute);
            RemovePraticipantCommand = new RelayCommand(RemovePraticipantExecute, RemovePraticipantCanExecute);
            EventList  = eventList;
            PeopleList = peopleList;

            EventToAdd                  = new Event();
            PersonToParticipate         = new Person();
            PersonToRevokeParticipation = new Person();
            AvailablePeople             = new ObservableCollection <Person>();
            Participants                = new ObservableCollection <Person>();

            EventProxy  = eventProxy;
            PersonProxy = personProxy;
        }
Exemple #7
0
 public EventServicesTests() {
     Context = new PlannerContext((new DbContextOptionsBuilder()).UseMySql(DbConnection).Options);
     Services = new EventServices(Context, new Mock<ICategoryServices>().Object);
 }
 public EventController(IUserService userService, IEventServices eventServices)
 {
     _eventServices = eventServices;
     _userService   = userService;
 }
Exemple #9
0
 public EventsController()
 {
     this.eventServices = new EventServices();
 }
Exemple #10
0
 public EventController(IEventServices clientServices, IMapper mapper)
 {
     _eventServices = clientServices;
     _mapper        = mapper;
 }
 public EventController(IEventServices @event)
 {
     context = new ApplicationDbContext();
     _event  = @event;
 }
Exemple #12
0
        public DeleteEventConfirmationViewModel(Event eventToBeDeleted, ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy)
        {
            EventToBeDeleted   = eventToBeDeleted;
            EventList          = eventList;
            PeopleList         = peopleList;
            Participants       = new ObservableCollection <Person>(EventToBeDeleted.Participants);
            DeleteEventCommand = new RelayCommand(DeleteEventExecute, DeleteEventCanExecute);

            EventProxy = eventProxy;
        }
Exemple #13
0
 public TopEventController(PlannerContext plannerContext,
                           IEventServices eventServices)
 {
     Context       = plannerContext;
     EventServices = eventServices;
 }
 public EventsController(IEventServices services)
 {
     _services = services;
 }
 public ItemRegistrationsController(PortalDbContext db, IEventServices svc, IShoppingCartService cartSvc, ApplicationUserManager userManager)
 {
     _db = db;
     _eventSvc = svc;
     _cartSvc = cartSvc;
     UserManager = userManager;
     //}
 }
 public HomeController()
 {
     this.deptServices  = new DepartmentServices();
     this.eventServices = new EventServices();
     this.newsServices  = new NewsServices();
 }
Exemple #17
0
 public EventController(IEventServices eventServices)
 {
     _eventService = eventServices;
 }
Exemple #18
0
 public EventsController(IEventServices IEvent)
 {
     Event = IEvent;
 }
Exemple #19
0
 public RunEventPageViewModel(INavigationService NavigationService, ITimeServices timeServices, IEventServices eventservices)
 {
     this.NavigationService = NavigationService;
     this.TimeServices      = timeServices;
     this.EventServices     = eventservices;
     StartCommand           = new DelegateCommand(StartMethod, CanExecuteStart).ObservesProperty(() => IsRunning);
     FinalizedCommnad       = new DelegateCommand(FinalizedMethod, CanExecuteStop).
                              ObservesProperty(() => IsRunning).ObservesProperty(() => Total);
     SplitTimeCommand = new DelegateCommand <object>(SplitTimeMethod, CanExecuteSplitTime).
                        ObservesProperty(() => Total).ObservesProperty(() => IsRunning);
     NavigateToEventDetailsCommand = new DelegateCommand(NavigateToEventDetailMethod);
     IsBusy = true;
 }
 public AgendaController(IEventServices eventServices, IUserService userService, ILiaison liaison)
 {
     EventServices = eventServices ?? throw new ArgumentNullException(nameof(eventServices));
     UserService   = userService ?? throw new ArgumentNullException(nameof(userService));
     Liaison       = liaison ?? throw new ArgumentNullException(nameof(liaison));
 }
Exemple #21
0
 //Contructor
 public PdfServices(ITimeServices timeServices, IRunnerServices runnerServices, IEventServices eventServices)
 {
     this.TimeServices   = timeServices;
     this.RunnerServices = runnerServices;
     this.EventServices  = eventServices;
 }
Exemple #22
0
 public EventController(IEventServices eventService, UserManager <User> userManager)
 {
     _eventService = eventService;
     _userManager  = userManager;
 }
Exemple #23
0
 public EventsController(IEventServices svc)
 {
     _svc = svc;
 }
 public AuditTrailController(IEventServices services)
 {
     _services = services;
 }
 public CedLogAttribute(UnitOfWork unitOfWork)
 {
     _unitOfWork      = unitOfWork;
     _editionServices = new EditionServices(_unitOfWork);
     _eventServices   = new EventServices(_unitOfWork);
 }
Exemple #26
0
 public MainPageViewModel(INavigationService navigationService, ISQLite dbservices, IEventServices eventServices, IPdfServices pdfServices)
     : base(navigationService)
 {
     Title = "Main Menu";
     NavigateToRunnerPageCommand = new DelegateCommand(NavigateToRunnerPage);
     DeleteAllCommand            = new DelegateCommand(DeleteAllMethod);
     NavigateToEventsPageCommand = new DelegateCommand(NavigateToEventsPage);
     this.navigationService      = navigationService;
     this.dbservices             = dbservices;
     Connection = dbservices.GetConnection();
     dbservices.CreateTables(Connection);
     this.EventServices = eventServices;
     GetNotRanEvents();
 }
 public EventsController(IEventServices eventServices, 
     IUserServices userServices)
 {
     this.eventServices = eventServices;
     this.userServices = userServices;
 }
 public EventController(IEventServices eventServices)
 {
     _eventService = eventServices;
 }