public void Should()
{
if (!admin.Create(SoakVHost, new Exchange("HelloWorldMessage")))
{
throw new Exception("Could not create exchange");
}
if (!admin.Create(SoakVHost, new Queue("sink")))
{
throw new Exception("Could not create queue");
}
if (!admin.Create(SoakVHost, new Exchange("HelloWorldMessage"), new Queue("sink")))
{
throw new Exception("Could not create binding");
}
using (var bus = Depot.Connect("localhost/soak"))
{
bus.Publish(new HelloWorldMessage());
}
}
}