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

            _queue = queueClient.GetQueueReference(QueueNames.ProviderQueueName);
        }
コード例 #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();
        }
コード例 #3
0
        public void ConfigureSystem()
        {
            //Act
            var config = new QueuingConfiguration(connectionFactory, kernel.Object, configurationRepository);

            config.ConfigureSystem();

            //Assert
            Assert.Pass();
        }