Пример #1
0
        public async Task BasicAsyncTest()
        {
            var request = new BasicHandler.Request {
                Value = "Async Hello!"
            };

            var result = await _mediator.DispatchAsync(request);

            Assert.AreEqual(request.Value, result.Value);
        }
Пример #2
0
        public void BasicTest()
        {
            var request = new BasicHandler.Request {
                Value = "Hello!"
            };

            var result = _mediator.Dispatch(request);

            Assert.AreEqual(request.Value, result.Value);
        }