Esempio n. 1
0
        public void Match_Wildcard()
        {
            var message = new WirehomeDictionary()
                          .WithValue("type", "myTypeX");

            var filter = new WirehomeDictionary()
                         .WithValue("type", "*");

            var compareResult = MessageBusFilterComparer.IsMatch(message, filter);

            Assert.IsTrue(compareResult);
        }
Esempio n. 2
0
        public void Match_Wildcard()
        {
            var message = new Dictionary <string, string>
            {
                ["type"] = "myTypeX"
            };

            var filter = new Dictionary <string, string>
            {
                ["type"] = "*"
            };

            var compareResult = MessageBusFilterComparer.IsMatch(message, filter);

            Assert.IsTrue(compareResult);
        }