IsValid() 공개 메소드

Determines if the request has valid settings.
public IsValid ( ) : bool
리턴 bool
예제 #1
0
        public void IsValidTrue()
        {
            List<FetchRequest> requests = new List<FetchRequest>
            { 
                new FetchRequest("topic a", 0, 0),
                new FetchRequest("topic a", 0, 0),
                new FetchRequest("topic b", 0, 0),
                new FetchRequest("topic c", 0, 0)
            };

            MultiFetchRequest multiRequest = new MultiFetchRequest(requests);
            Assert.IsTrue(multiRequest.IsValid());
        }
예제 #2
0
 public void IsValidNullRequests()
 {
     MultiFetchRequest multiRequest = new MultiFetchRequest(null);
     Assert.IsFalse(multiRequest.IsValid());
 }
예제 #3
0
 public void IsValidNoRequests()
 {
     MultiFetchRequest multiRequest = new MultiFetchRequest(new List<FetchRequest>());
     Assert.IsFalse(multiRequest.IsValid());
 }