예제 #1
0
 public HttpClientHandlerGetter(IProvideUser userProvider, ICreateInstances<HttpClientHandler> httpClientHandlerFactory, IProvideConfiguration<ServerConfiguration> serverConfigurationProvider, IHandleEncoding encoder)
 {
     this.userProvider = userProvider;
     this.serverConfigurationProvider = serverConfigurationProvider;
     this.encoder = encoder; 
     this.httpClientHandlerFactory = httpClientHandlerFactory;
 }
예제 #2
0
 public LoginControlService(ISendHttpRequests httpClient, IProvideConfiguration<LoginConfiguration> configuration, IMapEntities<IEnumerable<CollectionData>, FormUrlEncodedContent> mapper, IStoreDataLocally localStorageService, IHandleUserAccountEvents userAccountEvents)
 {
     this.httpClient = httpClient;
     this.configuration = configuration;
     this.mapper = mapper;
     this.localStorageService = localStorageService;
     this.userAccountEvents = userAccountEvents;
 }
 public NotifierFactory(IProvideConfiguration cfgProvider)
 {
     if (cfgProvider == null)
     {
         throw new ArgumentNullException(nameof(cfgProvider));
     }
     _registry = new Dictionary <string, INotifierFactory>();
     _registry.Add(typeof(PickAvailableMessage).FullName, new SendGridEmailFactory(cfgProvider));
 }
예제 #4
0
 public PackageUpdateVerifier(IProvideConfiguration<PluginServerConfiguration> configuration, IUpdatePackage packageUpdateManager, ISendHttpRequests httpClient, IMapEntities<Collection.Plugin, Plugin> collectionPluginToPluginMapper, IHandleDialogMessages dialogMessagesEvents, ICreateDialogForUpdate dialogMessageEventFactory)
 {
     this.configuration = configuration;
     this.packageUpdateManager = packageUpdateManager;
     this.httpClient = httpClient;
     this.collectionPluginToPluginMapper = collectionPluginToPluginMapper;
     this.dialogMessagesEvents = dialogMessagesEvents;
     this.dialogMessageEventFactory = dialogMessageEventFactory;
 }
 public void Teardown()
 {
     _provideConfiguration = null;
     _targetList           = null;
     _userList             = null;
     _passwordList         = null;
     _typeList             = null;
     _persistList          = null;
 }
예제 #6
0
 public PlatformModuleCreator(
     IPlatformModuleRepository moduleRepository,
     IProvideConfiguration provideConfiguration,
     ILogger logger,
     IPlatformDependencyManager dependencyManager)
 {
     _moduleRepository     = moduleRepository;
     _provideConfiguration = provideConfiguration;
     _logger            = logger;
     _dependencyManager = dependencyManager;
     _logger.Init(GetType());
 }
예제 #7
0
        public LoginControl(IServiceLoginControl loginControlService, IProvideConfiguration<RedisConfiguration> redisConfigurationProvider, IBuildContent contentBuilder, IGetFieldValue fieldValueGetter, IHandleUserAccountEvents userAccountEvents, ILog logger)
        {
            this.loginControlService = loginControlService;
            this.contentBuilder = contentBuilder;
            this.fieldValueGetter = fieldValueGetter;
            this.userAccountEvents = userAccountEvents;
            this.logger = logger;
            this.redisConfigurationProvider = redisConfigurationProvider;
            InitializeComponent();
            
            var collection = loginControlService.GetCollection();
            Resources.Add("templateData", collection.template.data);

            foreach (var panel in this.contentBuilder.GetContentFor(collection))
            {
                templateContainer.Children.Add(panel);
            }

            this.userAccountEvents.UserHasLogged += OnUserHasLogged;
            this.userAccountEvents.UserCouldNotLogIn += OnUserCouldNotLogin;
        }
        public void Setup()
        {
            _provideConfiguration = new ConfigurationAccessor();

            _targetList = new List <string>();
            _targetList.Add("TEST_DEFAULT");
            _targetList.Add("TEST_SPECIFIC");

            _userList = new List <string>();
            _userList.Add(@"cimpress\saber");
            _userList.Add(@"cimpress\sizilium");

            _passwordList = new List <string>();
            _passwordList.Add("Hansaplast");
            _passwordList.Add("GurkenNase");

            _typeList = new List <WindowsCredentialTypes.CredentialType>();
            _typeList.Add(WindowsCredentialTypes.CredentialType.GENERIC);
            _typeList.Add(WindowsCredentialTypes.CredentialType.DOMAIN_PASSWORD);

            _persistList = new List <WindowsCredentialTypes.CredentialPersist>();
            _persistList.Add(WindowsCredentialTypes.CredentialPersist.SESSION);
            _persistList.Add(WindowsCredentialTypes.CredentialPersist.LOCAL_MACHINE);
        }
예제 #9
0
 public EventMessageRecorder(IProvideConfiguration configurationProvider, string clientName)
     : base(configurationProvider)
 {
     _clientName = clientName;
 }
예제 #10
0
 public SendGridEmailFactory(IProvideConfiguration configurationProvider)
 {
     _cfgProvider = configurationProvider ?? throw new ArgumentNullException(nameof(configurationProvider));
 }
 public FlexOptionFileDownloader(HttpClient client, IProvideConfiguration config) : base(client)
 {
     _requestURI = config.GetValue("flex.option.file.uri");
     Start();
 }
예제 #12
0
 public CustomFaultManager(ISendMessages sender, IProvideConfiguration <MessageForwardingInCaseOfFaultConfig> config)
 {
     this.sender = sender;
     this.config = config.GetConfiguration();
 }
예제 #13
0
 public ReliesOnConfiguration(IProvideConfiguration config)
 {
     Value = config.GetValue("test.configuration.one");
 }
예제 #14
0
 public EventMessageDeleter(IProvideConfiguration configurationProvider)
     : base(configurationProvider)
 {
 }
예제 #15
0
 public Calculator(IProvideConfiguration configProvider)
 {
     _configProvider = configProvider;
 }
 public EventMessageBase(IProvideConfiguration configurationProvider)
 {
     _configurationProvider = configurationProvider;
 }
 public INotifierFactory CreateTestSubject(IProvideConfiguration cfg)
 {
     return(new NotifierFactory(cfg));
 }