public void TestExchangeService_DeclareExchange_InvalidExchangeType()
 {
     Assert.That(() =>
     {
         BaseExchangeService.Declare(name: "test.Example.3", type: "BLAHBLAH");
     }, Throws.TypeOf <ValidationException>());
 }
 public void TestExchangeService_DeclareExchange_InvalidExchangeName()
 {
     Assert.That(() =>
     {
         BaseExchangeService.Declare(name: "", type: "direct");
     }, Throws.TypeOf <ValidationException>());
 }
 public void TestExchangeService_DeclareExchange_NullArguments()
 {
     Assert.That(() =>
     {
         BaseExchangeService.Declare(null);
     }, Throws.TypeOf <ArgumentNullException>());
 }
        public void TestExchangeService_DeclareExchange_AddressObject()
        {
            var addr = new ExchangeAddressModel()
            {
                Name = "Test.Exchange"
            };

            Assert.DoesNotThrow(() => { BaseExchangeService.Declare(addr); });
        }
 public void TestExchangeService_DeclareExchange_StringParams()
 {
     Assert.DoesNotThrow(() => { BaseExchangeService.Declare(name: "Test.Exchange2", type: "direct"); });
 }