예제 #1
0
        public void Start()
        {
            //Arrange
            QueueStorageHandler = new QueueStorageHandler("queuecontainertest");
            byte[] bytes = new MemoryStream(ASCIIEncoding.Default.GetBytes("ByteArrayTest")).ToArray();

            firstQueue  = new CloudQueueMessage("FirstTextMessageTest");
            secondQueue = new CloudQueueMessage("SecondTextMessageTest");
            thirdQueue  = new CloudQueueMessage("ThirdTextMessageTest");
            forthQueue  = new CloudQueueMessage(bytes);


            //Act
            QueueStorageHandler.InsertMessage(firstQueue);
            QueueStorageHandler.InsertMessage(secondQueue);
            QueueStorageHandler.InsertMessage(thirdQueue);
            QueueStorageHandler.InsertMessage(forthQueue);
        }
        public void Start()
        {
            //Arrange
            QueueStorageHandler = new QueueStorageHandler("queuecontainertest");
            byte[] bytes = new MemoryStream(ASCIIEncoding.Default.GetBytes("ByteArrayTest")).ToArray();

            firstQueue = new CloudQueueMessage("FirstTextMessageTest");
            secondQueue = new CloudQueueMessage("SecondTextMessageTest");
            thirdQueue = new CloudQueueMessage("ThirdTextMessageTest");
            forthQueue = new CloudQueueMessage(bytes);

            //Act
            QueueStorageHandler.InsertMessage(firstQueue);
            QueueStorageHandler.InsertMessage(secondQueue);
            QueueStorageHandler.InsertMessage(thirdQueue);
            QueueStorageHandler.InsertMessage(forthQueue);
        }