public void Inject_NoFromServicesAttribute_Test() { var Configure = new AspectConfigure(); var interceptor = new InjectedInterceptor(); Assert.Null(interceptor.ConfigureWithNoFromServicesAttribute); var interceptorInjector = new InterceptorInjector(new InstanceServiceProvider(new OriginalServiceProvider(Configure)), new PropertyInjectorSelector().SelectPropertyInjector(typeof(InjectedInterceptor))); interceptorInjector.Inject(interceptor); Assert.Null(interceptor.ConfigureWithNoFromServicesAttribute); }
public void Inject_NoSetAccessor_Test() { var Configure = new AspectConfigure(); var interceptor = new InjectedInterceptor(); Assert.Null(interceptor.ConfigureWithNoSet); var interceptorInjector = new InterceptorInjector(new InstanceServiceProvider(Configure), new PropertyInjectorSelector().SelectPropertyInjector(typeof(InjectedInterceptor))); interceptorInjector.Inject(interceptor); Assert.Null(interceptor.ConfigureWithNoSet); }