public void Can_Create_EditablePropertyChanged_Proxy_Type() { var proxy = (SimpleViewModel)DynamicProxyTool.CreateEditablePropertyChanged(typeof(SimpleViewModel)); VerifyEditableObject(proxy); VerifyNotifyPropertyChanged(proxy); }
public void IsDynamicProxyType_Test() { var proxy = DynamicProxyTool.CreateNotifyPropertyChanged <SimpleViewModel>(); proxy.GetType().IsDynamicProxyType().Should().Be.True(); typeof(SimpleViewModel).IsDynamicProxyType().Should().Be.False(); }
public void IsDynamicProxy_Test() { var proxy = DynamicProxyTool.CreateNotifyPropertyChanged <SimpleViewModel>(); proxy.IsDynamicProxy().Should().Be.True(); new SimpleViewModel().IsDynamicProxy().Should().Be.False(); }
public void Can_Create_EditablePropertyChanged_Proxy_Generic() { var proxy = DynamicProxyTool.CreateEditablePropertyChanged <SimpleViewModel>(); VerifyEditableObject(proxy); VerifyNotifyPropertyChanged(proxy); }
public void Can_Create_EditablePropertyChanged_Proxy_Factory() { var proxy = (SimpleViewModel)DynamicProxyTool.CreateEditablePropertyChanged(() => ActivatorTool.CreateInstance <SimpleViewModel>()); VerifyEditableObject(proxy); VerifyNotifyPropertyChanged(proxy); }
public void Can_Create_EditableObject_Proxy_Generic() { var proxy = DynamicProxyTool.CreateEditableObject <SimpleViewModel>(); VerifyEditableObject(proxy); }
public void Can_Create_EditableObject_Proxy_Type() { var proxy = (SimpleViewModel)DynamicProxyTool.CreateEditableObject(typeof(SimpleViewModel)); VerifyEditableObject(proxy); }
public void Can_Create_NotifyPropertyChanged_Proxy_Factory() { var proxy = (SimpleViewModel)DynamicProxyTool.CreateNotifyPropertyChanged(() => new SimpleViewModel()); VerifyNotifyPropertyChanged(proxy); }