Exemplo n.º 1
0
        public void SimpleCallExample()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

            var response = stub.Dispatch(new MeaningOfLifeRequest(), (c, r, o) => c.WhatIsTheMeaningOfLife(r, o));

            response.MeaningOfLife.Should().Be(42);
        }
Exemplo n.º 2
0
        public void SimpleCallExample()
        {
            var stub = new ClientStub <ServiceClient>(new ServiceClient());

            var response = stub.Dispatch(new MeaningOfLifeRequest(), (c, r, o) => c.WhatIsTheMeaningOfLife(r, o));

            Assert.AreEqual(42, response.MeaningOfLife);
        }