Esempio n. 1
0
        public void Test_EventHubLog_MessageCancellation_UnableToCancel()
        {
            var azureStorageLogger = new AzureStorageEventLogger(blobContainerClient);

            var result = azureStorageLogger.CancelLogFileStoringOperation();

            Assert.AreEqual(AzureStorageEventLogCancellationResult.UnableToCancel, result);
        }
Esempio n. 2
0
        public void Test_EventHubLog_MessageCancellation_CancelSuccessfully()
        {
            var azureStorageLogger = new AzureStorageEventLogger(blobContainerClient);
            var azureStorageModel  = new AzureStorageEventModel("test service - test environment/day/test.json", GenerateTestMessage(512 * 512));

            azureStorageLogger.StoreLogFile(azureStorageModel, true);
            var result = azureStorageLogger.CancelLogFileStoringOperation();

            Assert.AreEqual(AzureStorageEventLogCancellationResult.Successful, result);
        }