public CheckHttpEndpointQueuePublisherTests()
        {
            var connectionString = "UseDevelopmentStorage=true";

            var storageAccount = CloudStorageAccount.Parse(connectionString);

            var queueClient = storageAccount.CreateCloudQueueClient();

            _queue = queueClient.GetQueueReference(nameof(CheckHttpEndpointQueuePublisherTests).ToLowerInvariant());

            _queue.CreateIfNotExistsAsync().Wait();

            _publisher = new CheckHttpEndpointQueuePublisher(name => Task.FromResult(_queue));
        }
        public CheckHttpMonitorPublisherServiceTests(DocumentDbFixture fixture)
        {
            _fixture    = fixture;
            _repository = new HttpMonitorDocumentRepository(fixture.DocumentClient, DatabaseConfigurations.Create());

            var connectionString = "UseDevelopmentStorage=true";

            var storageAccount = CloudStorageAccount.Parse(connectionString);

            var queueClient = storageAccount.CreateCloudQueueClient();

            _queue = queueClient.GetQueueReference(nameof(CheckHttpEndpointQueuePublisherTests).ToLowerInvariant());

            _queue.CreateIfNotExistsAsync().Wait();

            var publisher = new CheckHttpEndpointQueuePublisher(name => Task.FromResult(_queue));

            _service = new CheckHttpMonitorPublisherService(_repository, publisher);
        }