Ejemplo n.º 1
0
        public async Task <int> Write(Queue queue, string operation)
        {
            var businessQueue = queue.Adapt <QueueBusiness>();
            await queueData.Write(businessQueue, operation);

            return(businessQueue.Id);
        }
        public void AdaptShouldWrapQueue()
        {
            // arrange
            var target = new Queue<object>();
            
            // act
            var actual = target.Adapt();

            // assert
            Assert.IsType<QueueAdapter<object>>( actual );
        }