Ejemplo n.º 1
0
 public ResourceService(IResourceRepository resourceRepository, IResourceTypeRepository resourceTypeRepository,
                        IResourceParameterValueRepository resourceParameterValueRepository)
 {
     _resourceRepository               = resourceRepository;
     _resourceTypeRepository           = resourceTypeRepository;
     _resourceParameterValueRepository = resourceParameterValueRepository;
 }
Ejemplo n.º 2
0
 public ResourceTypeService(IResourceTypeRepository resourceTypeRepository,
                            IResourceCategoryRepository resourceCategoryRepository,
                            IResourceParameterRepository resourceParameterRepository)
 {
     _resourceTypeRepository      = resourceTypeRepository;
     _resourceCategoryRepository  = resourceCategoryRepository;
     _resourceParameterRepository = resourceParameterRepository;
 }
Ejemplo n.º 3
0
 public DbInitializer(UserManager <User> userManager, RoleManager <IdentityRole> roleManager, ICompanyRepository companyRepo, IVehicleRepository vehicleRepo, IResourceTypeRepository resourceTypeRepo, IItemRepository itemRepo)
 {
     _userManager      = userManager;
     _roleManager      = roleManager;
     _companyRepo      = companyRepo;
     _vehicleRepo      = vehicleRepo;
     _resourceTypeRepo = resourceTypeRepo;
     _itemRepo         = itemRepo;
 }
Ejemplo n.º 4
0
 public ResourceService(
     EFDbContext context,
     IResourceRepository resourceRepository,
     IResourceTypeRepository resourceTypeRepository,
     ICubicleRepository cubicleRepository)
 {
     _context                = context;
     _resourceRepository     = resourceRepository;
     _resourceTypeRepository = resourceTypeRepository;
     this.cubicleRepository  = cubicleRepository;
 }
Ejemplo n.º 5
0
 public GetFileInfoCommand(
     ICommandRequest commandRequest,
     IResourceTypeRepository resourceTypeRepository,
     INodeFactory nodeFactory,
     INodeValidator nodeValidator)
 {
     _commandRequest         = commandRequest;
     _resourceTypeRepository = resourceTypeRepository;
     _nodeFactory            = nodeFactory;
     _nodeValidator          = nodeValidator;
 }
Ejemplo n.º 6
0
 public ResourceService(IResourceRepository resourceRepository
                        , IResourceTypeRepository resourceTypeRepository
                        , IBasicCrudService crudService
                        , ILocationRepository locationRepository
                        , ILocalizedMessagesService localizedMessagesService)
 {
     _resourceRepository     = resourceRepository;
     _resourceTypeRepository = resourceTypeRepository;
     _crudService            = crudService;
     _locationRepository     = locationRepository;
     _localizedMessages      = localizedMessagesService;
 }
        public ResourceController(IResourceRepository _pgResource,
                                  IResourceTypeRepository _resourceTypeRepository,
                                  IElectronResourceTypeRepository _electronResourceTypeRepository,
                                  IHttpContextAccessor _httpContextAccessor)
        {
            pgResource                     = _pgResource;
            resourceTypeRepository         = _resourceTypeRepository;
            electronResourceTypeRepository = _electronResourceTypeRepository;
            httpContextAccessor            = _httpContextAccessor;

            if (httpContextAccessor.HttpContext.User.FindFirst(CustomClaims.UserId) != null)
            {
                currentUserId = Int32.Parse(httpContextAccessor.HttpContext.User.FindFirst(CustomClaims.UserId).Value);
            }
        }
Ejemplo n.º 8
0
 public PublicationService(
     EFDbContext context,
     IPublicationRepository publicationRepository,
     ISharedSpaceRepository sharedSpaceRepository,
     IReservationRepository reservationRepository,
     ICampusRepository campusRepository,
     IResourceTypeRepository resourceTypeRepository
     )
 {
     _context = context;
     _publicationRepository  = publicationRepository;
     _sharedSpaceRepository  = sharedSpaceRepository;
     _reservationRepository  = reservationRepository;
     this.campusRepository   = campusRepository;
     _resourceTypeRepository = resourceTypeRepository;
 }
Ejemplo n.º 9
0
 public AccountService(UserManager <User> userManager,
                       RoleManager <Role> roleMananager,
                       SignInManager <User> signInManager,
                       IIdentityRepository store,
                       IActivityService activityService,
                       IUserService userService,
                       IRoleRightRepository roleRightRepository,
                       IActivityRepository activityRepository,
                       IResourceRepository resourceRepository,
                       IResourceTypeRepository resourceTypeRepository)
 {
     UserManager             = userManager;
     SignInManager           = signInManager;
     RoleManager             = roleMananager;
     _store                  = store;
     _activityService        = activityService;
     _userService            = userService;
     _roleRightRepository    = roleRightRepository;
     _activityRepository     = activityRepository;
     _resourceRepository     = resourceRepository;
     _resourceTypeRepository = resourceTypeRepository;
 }
Ejemplo n.º 10
0
 public ResourceTypeService(IResourceTypeRepository resourceTypeService)
 {
     _resourceTypeRepository = resourceTypeService;
 }
Ejemplo n.º 11
0
 public ResourceAssignmentController(IBookingItemResourceAssignmentRepository resourceAssignmentRepo, IResourceTypeRepository resourceTypeRepo)
 {
     resourceAssignmentRepository = resourceAssignmentRepo;
     resourceTypeRepository       = resourceTypeRepo;
 }
Ejemplo n.º 12
0
 public void Setup()
 {
     _resourceTypeRepository = new MockResourceTypeRepository();
 }
Ejemplo n.º 13
0
 public ResourceTypeService(IResourceTypeRepository resourceTypeRepository)
 {
     _resourceTypeRepo = resourceTypeRepository;
 }
Ejemplo n.º 14
0
 public ResourcesController(IResourceRepository repoR, IResourceTypeRepository repoRT)
 {
     resourceRepository     = repoR;
     resourceTypeRepository = repoRT;
 }
Ejemplo n.º 15
0
 public ResourceTypesController(IResourceTypeRepository repo) => repositoryResourceType = repo;