Example #1
0
 public void Setup()
 {
     _geolocator          = CrossGeolocator.Geolocator = Substitute.For <IGeolocator>();
     _permissionValidator = Substitute.For <IPermissionValidator>();
     _messagingHandler    = Substitute.For <IMessagingHandler>();
     _trackerService      = new TrackerService(_permissionValidator, _messagingHandler);
 }
 public LsControllerActionInvoker(
     IValidation validation,
     IValidationHandler validatorHandler,
     IPermissionValidator permissionValidator)
 {
     _validation          = validation;
     _validatorHandler    = validatorHandler;
     _permissionValidator = permissionValidator;
 }
Example #3
0
 public CommandCoordinator(IResolveHandler resolveHandler, IEventPublisher eventPublisher, ICommandValidator validation, IPermissionValidator permissionValidator, IMapper mapper, IMetrics metrics, ILogger logger)
 {
     _resolveHandler      = resolveHandler.NotNull();
     _eventPublisher      = eventPublisher.NotNull();
     _validation          = validation.NotNull();
     _permissionValidator = permissionValidator.NotNull();
     _mapper  = _mapper.NotNull();
     _metrics = metrics.NotNull();
     _logger  = logger.NotNull();
 }
 public SetTemporaryPermissionHandler(IMediator mediator,
                                      ITemporaryPermissionRepository temporaryPermissionRepository,
                                      IJoinedParticipantsRepository participantsRepository, IPermissionValidator permissionValidator,
                                      ILogger <SetTemporaryPermissionHandler> logger)
 {
     _mediator = mediator;
     _temporaryPermissionRepository = temporaryPermissionRepository;
     _participantsRepository        = participantsRepository;
     _permissionValidator           = permissionValidator;
     _logger = logger;
 }
Example #5
0
 public PermissionGrantManager(
     IDataProviderPolicyApplicator applicator,
     IPermissionGrantStorage storage,
     IPermissionValidator validator,
     IResourceStorage resources)
 {
     this.applicator = applicator;
     this.storage    = storage;
     this.validator  = validator;
     this.resources  = resources;
 }
Example #6
0
 public UserService(IUserManager userManager, IPermissionValidator permissionValidator)
 {
     _userManager = DIHelper.VerifyParameter(userManager);
     _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
 }
Example #7
0
 public PermissionService(IUOW UOW, IPermissionValidator PermissionValidator, ILogging Logging)
 {
     this.UOW = UOW;
     this.PermissionValidator = PermissionValidator;
     this.Logging             = Logging;
 }
		public CredentialsService(ICredentialsManager credentialsManager, IPermissionValidator permissionValidator)
		{
			_credentialsManager = DIHelper.VerifyParameter(credentialsManager);
            _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
		}
 public DeployStepMoveService(IPermissionValidator permissionValidator, IProjectManager projectManager)
 {
     _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
     _projectManager = DIHelper.VerifyParameter(projectManager);
 }
 public BuildPurgeRuleService(IPermissionValidator permissionValidator, IBuildPurgeRuleManager buildPurgeRuleManager)
 {
     _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
     _buildPurgeRuleManager = DIHelper.VerifyParameter(buildPurgeRuleManager);
 }
		public EffectivePermissionsService(IPermissionValidator permissionValidator)
		{
			_permissionValidator = DIHelper.VerifyParameter(permissionValidator);
		}
		public AccountSettingsService(IAccountSettingsManager accountSettingsManager, IPermissionValidator permissionValidator)
		{
			_accountSettingsManager = DIHelper.VerifyParameter(accountSettingsManager);
			_permissionValidator = DIHelper.VerifyParameter(permissionValidator);
		}
Example #13
0
 public PermissionController(IPermissionService permSvc, IPermissionValidator permVal)
 {
     _permissionService   = permSvc;
     _permissionValidator = permVal;
 }
		public CredentialsTestService(IImpersonator impersonator, IPermissionValidator permissionValidator)
		{
			_impersonator = DIHelper.VerifyParameter(impersonator);
            _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
		}
Example #15
0
 public PermissionTicketManager(IPermissionValidator validator,
                                IPermissionTicketStorage storage)
 {
     this.validator = validator;
     this.storage   = storage;
 }
Example #16
0
 public CommandValidator(IValidator validation, IPermissionValidator permissionValidator)
 {
     _validation          = validation.NotNull();
     _permissionValidator = permissionValidator.NotNull();
 }
 public SystemRoleService(ISystemRoleManager systemRoleManager, IPermissionValidator permissionValidator)
 {
     _systemRoleManager = DIHelper.VerifyParameter(systemRoleManager);
     _permissionValidator = DIHelper.VerifyParameter(permissionValidator);
 }
Example #18
0
 public TrackerService(IPermissionValidator permissionValidator, IMessagingHandler messagingHandler)
 {
     _permissionValidator        = permissionValidator;
     _messagingHandler           = messagingHandler;
     _geolocator.DesiredAccuracy = 1;
 }
Example #19
0
 public PermissionsService(TasksDbContext context, IOptions <AppSettings> appSettings, IPermissionValidator permissionValidator)
 {
     this.context             = context;
     this.appSettings         = appSettings.Value;
     this.permissionValidator = permissionValidator;
 }