Beispiel #1
0
        public void Setup()
        {
            this.committerMock  = new Mock <IOffsetCommitter>();
            this.topicPartition = new XXXTopicPartition("topic-A", 1);

            this.target = new OffsetManager(
                this.committerMock.Object,
                new List <XXXTopicPartition> {
                this.topicPartition
            });
        }
Beispiel #2
0
 public static TopicPartition TopicPartition(XXXTopicPartition tp)
 {
     return(new TopicPartition(tp.Topic, tp.Partition));
 }