public void InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes() { SetupContainer("InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes"); DerivedWrappable wrappable = PolicyInjection.Create <DerivedWrappable>(); wrappable.Method(); Assert.AreEqual(1, GlobalCountCallHandler.Calls["InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes"]); }
public void CanInterceptCallsToDerivedOfMBRO() { SetupContainer("CanInterceptCallsToDerivedOfMBRO"); DerivedWrappable wrappable = PolicyInjection.Create <DerivedWrappable>(); wrappable.Method2(); Assert.AreEqual(1, GlobalCountCallHandler.Calls["CanInterceptCallsToDerivedOfMBRO"]); }
public void InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes() { GlobalCountCallHandler.Calls.Clear(); IConfigurationSource configurationSource = CreateConfigurationSource("InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes"); DerivedWrappable wrappable = PolicyInjection.Create <DerivedWrappable>(configurationSource); wrappable.Method(); Assert.AreEqual(1, GlobalCountCallHandler.Calls["InterfaceImplementationsOnDerivedClassesAreWrappedMultipleTimes"]); }
public void CanInterceptCallsToDerivedOfMBRO() { GlobalCountCallHandler.Calls.Clear(); IConfigurationSource configurationSource = CreateConfigurationSource("CanInterceptCallsToDerivedOfMBRO"); DerivedWrappable wrappable = PolicyInjection.Create <DerivedWrappable>(configurationSource); wrappable.Method2(); Assert.AreEqual(1, GlobalCountCallHandler.Calls["CanInterceptCallsToDerivedOfMBRO"]); }