public void CanGetTxClassMetaInfo() { var meta = TransactionClassMetaInfoStore.GetMetaFromTypeInner(typeof(MyService)); meta.ShouldPass("MyService has Transaction attributes") .ShouldBe(m => m.TransactionalMethods.Count() >= 4, "there are four or more methods"); }
public void The_Meta_Store_Knows_Subclasses() { var meta = TransactionClassMetaInfoStore.GetMetaFromTypeInner(typeof(SubClass)); meta.ShouldPass("SubClass has Transaction attributes") .ShouldBe(m => m.TransactionalMethods.Count() == 1, "One on the base class"); }