Ejemplo n.º 1
0
 public SchedulerController(IShiftRepository shiftRepository,
                            UserManager <ApplicationUser> userManager,
                            IAvailabilityRepository availabilityRepository)
 {
     this.shiftRepository        = shiftRepository;
     this.userManager            = userManager;
     this.availabilityRepository = availabilityRepository;
 }
        public EmployeeAvailabilityViewModel(IAvailabilityRepository availabilityRepository)
        {
            _availabilityRepository = availabilityRepository;
            _myAvailabilities       = new List <Availability>();

            Appointments = new ObservableCollection <Appointment>();

            SaveCommand = new RelayCommand(Save);
        }
        /// <summary>
        /// Initializes a new instance of the VolunteerAvailabilityVM class.
        /// </summary>
        public VolunteerAvailabilityVM(
            IPersonRepository _pers,
            IAvailabilityRepository _avail,
            INavigationService navService)
        {
            _personRepository = _pers;
            _availabilityRepository = _avail;
            NavigationService = navService;

            Refresh();
        }
Ejemplo n.º 4
0
 public ServiceCategoryEventHandler(IServiceCategoryRepository serviceCategoryRepository,
                                    IServiceItemRepository serviceRepository,
                                    IAvailabilityRepository availabilityRepository,
                                    IUnavailabilityRepository unavailabilityRepository
                                    )
 {
     _serviceCategoryRepository = serviceCategoryRepository;
     _serviceRepository         = serviceRepository;
     _availabilityRepository    = availabilityRepository;
     _unavailabilityRepository  = unavailabilityRepository;
 }
Ejemplo n.º 5
0
 public AvailabilityService(IValidator <NewAvailabilityRequest> newAvailabilityValidator, IAvailabilityRepository repository,
                            IClubQuery clubQuery, ISquadQuery squadQuery, IMemberQuery memberQuery, IAvailabilityQuery availabilityQuery
                            )
 {
     this.newAvailabilityValidator = newAvailabilityValidator;
     this.repository        = repository;
     this.clubQuery         = clubQuery;
     this.squadQuery        = squadQuery;
     this.memberQuery       = memberQuery;
     this.availabilityQuery = availabilityQuery;
 }
 public StaffService(
     IBusinessIntegrationEventService businessIntegrationEventService,
     IStaffRepository staffRepository,
     IAvailabilityRepository availabilityRepository,
     IUnavailabilityRepository unavailabilityRepository)
 {
     _businessIntegrationEventService = businessIntegrationEventService;
     _staffRepository          = staffRepository;
     _availabilityRepository   = availabilityRepository;
     _unavailabilityRepository = unavailabilityRepository;
 }
Ejemplo n.º 7
0
 public ShiftController(IShiftRepository shiftRepository,
                        IUserShiftRepository userShiftRepository,
                        RoleManager <IdentityRole> roleManager,
                        UserManager <ApplicationUser> userManager,
                        IAvailabilityRepository availabilityRepository)
 {
     this.shiftRepository        = shiftRepository;
     this.userShiftRepository    = userShiftRepository;
     this.roleManager            = roleManager;
     this.userManager            = userManager;
     this.availabilityRepository = availabilityRepository;
 }
        //private 

        /// <summary>
        /// Initializes a new instance of the AppointmentAssignVM class.
        /// </summary>
        public AppointmentAssignVM(IPersonRepository _pers,
            IAppointmentRepository _appts,
            IAppointmentRequirementsRepository _appReqs,
            IAttachedRequirementRepository _attachReqs,
            IAvailabilityRepository _avail, 
            INavigationService _nav)
        {
            _personRepository = _pers;
            _appointmentRepository = _appts;
            _apptReqsRepository = _appReqs;
            _attachedReqsRepository = _attachReqs;
            _availabilityRepository = _avail;
            NavigationService = _nav;

            Refresh();
        }
Ejemplo n.º 9
0
 public UnitOfWork(ApplicationDbContext db,
                   IAccessoryRepository accessoryRepository,
                   IListingRepository listingRepository,
                   IBookingRepository bookingRepository,
                   IAvailabilityRepository availabiltyRepository,
                   IHostRepository hostRepository,
                   IUserRepository userRepository,
                   IReviewRepository reviewRepository,
                   IRoutePlannerRepository routePlannerRepository)
 {
     this._db          = db;
     this.Accessories  = accessoryRepository;
     this.Listings     = listingRepository;
     this.Bookings     = bookingRepository;
     this.Availability = availabiltyRepository;
     this.Host         = hostRepository;
     this.Users        = userRepository;
     this.Reviews      = reviewRepository;
     this.RoutePlanner = routePlannerRepository;
 }
Ejemplo n.º 10
0
        public InspectorAvailabilityViewModel(IUserRepository userRepository, IAvailabilityRepository availabilityRepository, IScheduleRepository scheduleRepository)
        {
            _availabilityRepository = availabilityRepository;
            _scheduleRepository     = scheduleRepository;
//            SelectedItems = selectedItems;

            AnswerCollection  = new ObservableCollection <string>();
            SelectedEmployees = new ObservableCollection <Employee>();

            EmployeeList = new ObservableCollection <Employee>();

            userRepository.All()
            .Where(x => x != null)
            .Select(x => x).Distinct()
            .ToList().ForEach(EmployeeList.Add);

            //SelectedItems.CollectionChanged += SelectedItems_CollectionChanged;

            var curDir = Directory.GetCurrentDirectory();

            WebBrowserUri = $"file:///{curDir}/WebFiles/AvailabilityInspectors.html";

            GenerateCommand = new RelayCommand <WebBrowser>(generate);
        }
 public AvailabilityController(UserManager <ApplicationUser> userManager, IAvailabilityRepository availabilityRepository)
 {
     this.userManager            = userManager;
     this.availabilityRepository = availabilityRepository;
 }
Ejemplo n.º 12
0
 // Constructor
 public AvailabilityController(IAvailabilityRepository repository)
 {
     repo = repository;
 }
 public AvailabilityController(IAvailabilityRepository repository)
 {
     this.repository = repository;
 }
 public AvailabilityService(IAvailabilityRepository availabilityRepository, IProductRepository productRepository, IUnitOfWork unitOfWork)
 {
     _availabilityRepository = availabilityRepository;
     _unitOfWork             = unitOfWork;
     _productRepository      = productRepository;
 }
Ejemplo n.º 15
0
 /// <summary>
 ///     Default constructor
 /// </summary>
 /// <param name="productReader"></param>
 /// <param name="availabilityRepository"></param>
 public ProductRepository(IProductReader productReader, IAvailabilityRepository availabilityRepository)
 {
     _productReader          = productReader;
     _availabilityRepository = availabilityRepository;
 }
 public AvailabilitiesController(
     IAvailabilityRepository availabilityRepository)
 {
     _availabilityRepository = availabilityRepository;
 }
Ejemplo n.º 17
0
 public OfficeAttendanceController(IAvailabilityRepository availabilityRepository)
 {
     _availabilityRepository = availabilityRepository;
 }