Exemplo n.º 1
0
        public void IsQueueWithWildCard()
        {
            string wildCardContent = null;
            var    result          = SnipsClient.IsQueue("hermes/intent/#", "hermes/intent/sdoempke:test", out wildCardContent);

            Assert.IsTrue(result);
            Assert.AreEqual("sdoempke:test", wildCardContent);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            InitializeLogging();

            var snipsClient = new SnipsClient();

            snipsClient.RegisterDialog(new TestDialog());
            snipsClient.Connect("127.0.0.1");

            Console.ReadLine();
        }
Exemplo n.º 3
0
        public void IsQueueWithoutWildCard()
        {
            string wildCardContent   = null;
            var    resultWithSuccess = SnipsClient.IsQueue("hermes/hotword/toggleOn", "hermes/hotword/toggleOn", out wildCardContent);

            Assert.IsTrue(resultWithSuccess);
            Assert.IsNull(wildCardContent);

            wildCardContent = null;
            var resultWithFailure = SnipsClient.IsQueue("hermes/hotword/toggleOn", "hermes/hotword/toggleOff", out wildCardContent);

            Assert.IsFalse(resultWithFailure);
            Assert.IsNull(wildCardContent);
        }