static void Main(string[] args) { var pipe = Bunny.ConnectSingleWith(); IBunny bunny = pipe.Connect(); Console.ReadLine(); }
public void ConnectToSingleNodeWithConnectionPipe() { var pipe = Bunny.ConnectSingleWith(); // not configuring anything uses default IBunny bunny = pipe.Connect(); Assert.NotNull(bunny); }
public void ConfigurePipeWorks() { var pipe = Bunny.ConnectSingleWith(); pipe.ToHost("localhost") .ToVirtualHost("unittests") .ToPort(5672) .AuthenticatePlain("guest", "guest"); IBunny bunny = pipe.Connect(); Assert.NotNull(bunny); }