Beispiel #1
0
        public StorageProviderQueue(
            QueuingConfiguration configuration,
            ILogger <StorageProviderQueue> logger)
        {
            var storageAccount = CloudStorageAccount.Parse(configuration.QueueConnectionString);
            var queueClient    = storageAccount.CreateCloudQueueClient();

            _queue = queueClient.GetQueueReference(QueueNames.ProviderQueueName);
        }
Beispiel #2
0
        public void Setup()
        {
            var configService           = new AppSettingsConfigurationService();
            var connectionFactory       = new ConfiguredConnectionFactory(configService);
            var kernel                  = new StandardKernel();
            var configurationRepository = new ConfigurationRepository(connectionFactory);
            var configuration           = new QueuingConfiguration(connectionFactory, kernel, configurationRepository);

            configuration.ConfigureSystem();
        }
        public void ConfigureSystem()
        {
            //Act
            var config = new QueuingConfiguration(connectionFactory, kernel.Object, configurationRepository);

            config.ConfigureSystem();

            //Assert
            Assert.Pass();
        }