Exemple #1
0
 public OnEditSpecificationEvent(
     ILogger logger,
     IFundingStreamPermissionService fundingStreamPermissionService,
     IMessengerService messengerService,
     IUserProfileProvider userProfileProvider, bool useAzureStorage = false)
     : base(logger, messengerService, FunctionName, $"{ServiceBusConstants.TopicNames.EditSpecification}/{ServiceBusConstants.TopicSubscribers.UpdateUsersForEditSpecification}", useAzureStorage, userProfileProvider, fundingStreamPermissionService)
 {
 }
        public UsersController(IUserService userService, IFundingStreamPermissionService fundingStreamPermissionService)
        {
            Guard.ArgumentNotNull(userService, nameof(userService));
            Guard.ArgumentNotNull(fundingStreamPermissionService, nameof(fundingStreamPermissionService));

            _userService = userService;
            _fundingStreamPermissionService = fundingStreamPermissionService;
        }
        public static void SetupTests(TestContext tc)
        {
            SetupTests("users");

            _logger = CreateLogger();
            _fundingStreamPermissionService = CreateFundingStreamPermissionService();
            _userProfileProvider            = CreateUserProfileProvider();
        }
        public OnEditSpecificationEvent(
            ILogger logger,
            IFundingStreamPermissionService fundingStreamPermissionService)
        {
            Guard.ArgumentNotNull(logger, nameof(logger));
            Guard.ArgumentNotNull(fundingStreamPermissionService, nameof(fundingStreamPermissionService));

            _logger = logger;
            _fundingStreamPermissionService = fundingStreamPermissionService;
        }