public void IsMatchByQueryType_IdMismatch_ReturnsFalse()
        {
            var type = typeof(Table);
            var sut  = new CachedQuery(_queryToCache, "id", type);

            Assert.False(sut.IsMatch("nonId", typeof(Table)));
        }
        public void IsMatchById_CachedQueryHasQueryType_ReturnsFalse()
        {
            var id  = "QueryId";
            var sut = new CachedQuery(_queryToCache, id, typeof(Table));

            Assert.False(sut.IsMatch(id));
        }
        public void IsMatchByQueryType_QueryTypeMisMatch_ReturnsFalse()
        {
            var id = "id";

            var sut = new CachedQuery(_queryToCache, id, typeof(Left));

            Assert.False(sut.IsMatch(id, typeof(Right)));
        }
        public void IsMatchById_Match_ReturnsTrue()
        {
            var id = "id";

            var sut = new CachedQuery(_queryToCache, "id");

            Assert.True(sut.IsMatch(id));
        }
        public void IsMatchByQueryType_IdAnQueryTypeMatch_ReturnsTrue()
        {
            var id   = "id";
            var type = typeof(Table);
            var sut  = new CachedQuery(_queryToCache, id, type);

            Assert.True(sut.IsMatch(id, type));
        }
        public void IsMatchById_IdMismatch_ReturnsFalse()
        {
            var sut = new CachedQuery(_queryToCache, "id");

            Assert.False(sut.IsMatch("notId"));
        }