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

                Assert.IsFalse(conventions.IsEventType(typeof(NServiceBus.Conventions)));
            }
示例#2
0
            public void IsEventType_should_return_true_for_matching_type()
            {
                var conventions = new NServiceBus.Conventions
                {
                    IsEventTypeAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly ||
                                        t == typeof(MyConventionEvent)
                };

                Assert.IsTrue(conventions.IsEventType(typeof(MyConventionEvent)));
            }
示例#3
0
 public void IsEventType_should_return_true_for_matching_type()
 {
     var conventions = new NServiceBus.Conventions
     {
         IsEventTypeAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly ||
                                    t == typeof(MyConventionEvent)
     };
     Assert.IsTrue(conventions.IsEventType(typeof(MyConventionEvent)));
 }
示例#4
0
 public void IsEventType_should_return_false_for_NServiceBus_types()
 {
     var conventions = new NServiceBus.Conventions
     {
         IsEventTypeAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly
     };
     Assert.IsFalse(conventions.IsEventType(typeof(NServiceBus.Conventions)));
 }