public async Task ShowMultiCast() { var meidator = MediatRUtils.BuildMediator(); await meidator.Publish(new Notice { }); Assert.Equal(2, Notice.Counter); }
public async Task ShowSingleCast() { var mediator = MediatRUtils.BuildMediator(); var response = await mediator.Send(new Ping { }); Assert.Equal("pong", response); }