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

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

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