Example #1
0
        public async Task TestGetSet()
        {
            const string url = "https://test.com";

            await _repository.AddAsync(url);

            Assert.IsTrue(await _repository.ExistsAsync(url));
        }
Example #2
0
        private async Task SendUpdate(Update update)
        {
            _updatesPublisher.Send(update);

            if (_config.StoreSentUpdates)
            {
                await _sentUpdatesRepository.AddAsync(update.Url);
            }
        }