public void ShouldCreateVirtualHost() { var api = new RabbitAdmin("http://localhost:15672/api"); api.Delete(new VirtualHost("test")); Assert.That(api.Create(new VirtualHost("test"))); Assert.That(api.VirtualHosts().Any(v => v.Name == "test")); } }