public void EntLibProxyTest() { User user = new User() { Name = "wudan", PassWord = "******" }; EntLibProxy.UserProcessor.ProxyInstance.RegUser(user); }
public void DynamicProxyTest() { User user = new User() { Name = "wudan", PassWord = "******" }; DynamicProxy.UserProcessor userProcessor = DynamicProxy.TransparentProxy.CreateInstance<DynamicProxy.UserProcessor>(); userProcessor.RegUser(user); }
public void CastleDynamicProxyTest() { User user = new User() { Name = "wudan", PassWord = "******" }; CastleDynamicProxy.UserProcessor.ProxyInstance.RegUser(user); }
public void StatisAopTest() { User user = new User() { Name = "wudan", PassWord = "******" }; IUserProcessor userProcessor = new StatisProxy.UserProcessorDecorator(new StatisProxy.UserProcessor()); userProcessor.RegUser(user); }