コード例 #1
0
        public void ManyMultiplier()
        {
            var random = new Random();
            var i = random.Next();
            var j = random.Next();

            var route = new DirectRoute();
            var value = route.Get<int>("Many/Multiplier", i, j);

            Assert.AreEqual(i * j, value);
        }
コード例 #2
0
        public void TestNonRoundTrip()
        {
            var random = new Random();
            var expected = random.Next();

            var route = new DirectRoute();
            route.Send("TestNon/Set", expected);

            var value = route.Get<int>("TestNon/Red");

            Assert.AreEqual(expected, value);
        }
コード例 #3
0
 public void InvokeRouteUnknown()
 {
     var queue = new DirectRoute();
     queue.Invoke(Guid.NewGuid().ToString());
 }
コード例 #4
0
 public void InvokeRouteNull()
 {
     var queue = new DirectRoute();
     queue.Invoke(null);
 }