public void SetUp() { this.PreSetUp(); this.endpoints = new List<IBus>(); this.broker = new Broker(this.managementConnection, this.adminUsername, this.adminPassword); this.vhostName = "test" + Guid.NewGuid().ToString("n"); this.broker.CreateHost(this.vhostName); this.broker.CreateUser(this.vhostName, this.testUsername, this.testPassword); this.broker.SetPermissions(this.vhostName, this.testUsername); }
public void TearDown() { foreach (var bus in this.endpoints) { bus.Dispose(); } this.endpoints.Clear(); this.broker.DeleteHost(this.vhostName); this.vhostName = null; this.broker = null; }