public void CanDoItAll() { var fakeBus = new FakeBus(); fakeBus.Send(new MyMessage("send")).Wait(); fakeBus.SendLocal(new MyMessage("send")).Wait(); fakeBus.Publish(new MyMessage("send")).Wait(); fakeBus.Defer(TimeSpan.FromSeconds(10), new MyMessage("send")).Wait(); fakeBus.Subscribe<MyMessage>().Wait(); fakeBus.Unsubscribe<MyMessage>().Wait(); }
public void CanDoItAll() { var fakeBus = new FakeBus(); fakeBus.Send(new MyMessage("send")).Wait(); fakeBus.SendLocal(new MyMessage("send")).Wait(); fakeBus.Publish(new MyMessage("send")).Wait(); fakeBus.Defer(TimeSpan.FromSeconds(10), new MyMessage("send")).Wait(); fakeBus.Subscribe <MyMessage>().Wait(); fakeBus.Unsubscribe <MyMessage>().Wait(); }