public async Task BasicAsyncTest() { var request = new BasicHandler.Request { Value = "Async Hello!" }; var result = await _mediator.DispatchAsync(request); Assert.AreEqual(request.Value, result.Value); }
public void BasicTest() { var request = new BasicHandler.Request { Value = "Hello!" }; var result = _mediator.Dispatch(request); Assert.AreEqual(request.Value, result.Value); }