Esempio n. 1
0
        public void Trivial()
        {
            var handler = factory.CreateMethodHandler(globalServiceImplementationInfo, new ServicePath("MyService", "Trivial"));
            var result  = handler(service, new byte[0]);

            Assert.That(result.Length, Is.EqualTo(0));
            Assert.That(service.ReceivedCalls().Single().GetMethodInfo().Name, Is.EqualTo("Trivial"));
        }
        public void Trivial()
        {
            var handler = CreateClass("MyService", "Trivial")(null);
            var result  = handler.Handle(service, null, 0).Result;

            Assert.That(result.Length, Is.EqualTo(0));
            Assert.That(service.ReceivedCalls().Single().GetMethodInfo().Name, Is.EqualTo("Trivial"));
        }