IsValid() public method

Determines if the request has valid settings.
public IsValid ( ) : bool
return bool
示例#1
0
 public void IsValidFalseNoTopic()
 {
     ProducerRequest request = new ProducerRequest(null, 0, null);
     Assert.IsFalse(request.IsValid());
 }
示例#2
0
 public void IsValidFalseNoMessages()
 {
     ProducerRequest request = new ProducerRequest("topic", 0, null);
     Assert.IsFalse(request.IsValid());
 }
示例#3
0
 public void IsValidTrue()
 {
     ProducerRequest request = new ProducerRequest(
         "topic", 0, new List<Message> { new Message(new byte[10]) });
     Assert.IsTrue(request.IsValid());
 }