Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Event Processor unit testing

$
0
0

Hi, 

I m trying to write unit test for my eventprocessor but I dont know how to moc context object. Any suggestions. This is openasync method I m testing

 public Task OpenAsync(PartitionContext context)
        {
            _log.LogInformation("Opening Event Processor at {ConsumerGroup}-{Partition}",
                context.ConsumerGroupName,
                context.PartitionId);
            return Task.CompletedTask;
        }

Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>