Beispiel #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)));
            }
Beispiel #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)));
            }
Beispiel #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)));
 }
Beispiel #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)));
 }