Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
        public void IsValidNullRequests()
        {
            MultiFetchRequest multiRequest = new MultiFetchRequest(null);

            Assert.IsFalse(multiRequest.IsValid());
        }
Ejemplo n.º 3
0
        public void IsValidNoRequests()
        {
            MultiFetchRequest multiRequest = new MultiFetchRequest(new List <FetchRequest>());

            Assert.IsFalse(multiRequest.IsValid());
        }