/src/Ninject.Extensions.Interception.Test/AutoNotifyPropertyMethodInterceptorContextDynamicProxy2.cs

https://github.com/hereyes/ninject.extensions.interception · C# · 18 lines · 15 code · 3 blank · 0 comment · 0 complexity · a3c7af271083f1a9e1cad142ab4afa8c MD5 · raw file

  1. namespace Ninject.Extensions.Interception
  2. {
  3. using Castle.DynamicProxy;
  4. using FluentAssertions;
  5. using Xunit;
  6. public class AutoNotifyPropertyMethodInterceptorContextDynamicProxy2
  7. : AutoNotifyPropertyMethodInterceptorContext<DynamicProxyModule>
  8. {
  9. [Fact]
  10. public void WhenAutoNotifyAttributeIsAttachedToAProperty_TheObjectIsProxied()
  11. {
  12. typeof(IProxyTargetAccessor).IsAssignableFrom(ViewModel.GetType()).Should().BeTrue();
  13. }
  14. }
  15. }