示例#1
0
            public void IsExpressMessageType_should_return_false_for_NServiceBus_types()
            {
                var conventions = new NServiceBus.Conventions
                {
                    IsExpressMessageAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly
                };

                Assert.IsFalse(conventions.IsExpressMessageType(typeof(NServiceBus.Conventions)));
            }
示例#2
0
            public void IsExpressType_should_return_true_for_matching_type()
            {
                var conventions = new NServiceBus.Conventions
                {
                    IsExpressMessageAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly ||
                                             t == typeof(MyConventionExpress)
                };

                Assert.IsTrue(conventions.IsExpressMessageType(typeof(MyConventionExpress)));
            }
示例#3
0
 public void IsExpressType_should_return_true_for_matching_type()
 {
     var conventions = new NServiceBus.Conventions
     {
         IsExpressMessageAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly ||
                                    t == typeof(MyConventionExpress)
     };
     Assert.IsTrue(conventions.IsExpressMessageType(typeof(MyConventionExpress)));
 }
示例#4
0
 public void IsExpressMessageType_should_return_false_for_NServiceBus_types()
 {
     var conventions = new NServiceBus.Conventions
     {
         IsExpressMessageAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly
     };
     Assert.IsFalse(conventions.IsExpressMessageType(typeof(NServiceBus.Conventions)));
 }