public void EventList_Test()
        {
            var search = new SearchDescriptor <EventReceiver>();

            search
            .From(0)
            .Size(10);

            var receiver = _eventReceiverDao.List(search);

            Assert.Equal(0, receiver.Count);
        }
        public IReadOnlyCollection <EventReceiver> List(int from, int size, string tag)
        {
            var search = new SearchDescriptor <EventReceiver>();

            search
            .From(from)
            .Size(size)
            .Query(q => q
                   .Match(m => m
                          .Field(f => f.Tag)
                          .Query(tag)
                          )
                   );

            return(_receiverDao.List(search));
        }