Exemplo n.º 1
0
        public async Task SendQueueMessageAyncTestAsync()
        {
            Configuration config = await TestHelper.GetConfigurationAsync();

            QueueApi queueApi = new QueueApi(config);

            SendReceipt sr = await queueApi.SendQueueMessageAync(ContestFactory.CreateChallengeRequestJson());

            Assert.IsNotNull(sr);
        }
Exemplo n.º 2
0
        public async Task ReceiveQueueMessageAyncTestAsync()
        {
            Configuration config = await TestHelper.GetConfigurationAsync();

            QueueApi queueApi = new QueueApi(config);

            await queueApi.SendQueueMessageAync(ContestFactory.CreateChallengeRequestJson());

            Azure.Response <QueueMessage[]> response = await queueApi.ReceiveQueueMessageAync();

            Assert.IsNotNull(response);
        }