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()); }
public void IsValidNullRequests() { MultiFetchRequest multiRequest = new MultiFetchRequest(null); Assert.IsFalse(multiRequest.IsValid()); }
public void IsValidNoRequests() { MultiFetchRequest multiRequest = new MultiFetchRequest(new List<FetchRequest>()); Assert.IsFalse(multiRequest.IsValid()); }