C# (CSharp) Streamiz.Kafka.Net.Mock Namespace

Classes

Name Description
TestOutputTopic TestOutputTopic{K, V} is used to read records from a topic in TopologyTestDriver and it's NOT THREADSAFE. To use TestOutputTopic{K, V} create a new instance via TopologyTestDriver.CreateOuputTopic{K, V}(string). In actual test code, you can read record values, keys, keyvalue or list of keyvalue. If you have multiple source topics, you need to create a TestOutputTopic{K, V} for each. Processing records var outputTopic = builder.CreateOuputTopic<string, string>("test-output", TimeSpan.FromSeconds(5)); var kv = outputTopic.ReadKeyValue(); DO ASSERT HERE