/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
- namespace Ninject.Extensions.Interception
- {
- using Castle.DynamicProxy;
- using FluentAssertions;
- using Xunit;
-
- public class AutoNotifyPropertyMethodInterceptorContextDynamicProxy2
- : AutoNotifyPropertyMethodInterceptorContext<DynamicProxyModule>
- {
- [Fact]
- public void WhenAutoNotifyAttributeIsAttachedToAProperty_TheObjectIsProxied()
- {
- typeof(IProxyTargetAccessor).IsAssignableFrom(ViewModel.GetType()).Should().BeTrue();
- }
- }
- }