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 }); }
public static TopicPartition TopicPartition(XXXTopicPartition tp) { return(new TopicPartition(tp.Topic, tp.Partition)); }