Loading

摘要: 1)First case for an sample user:publicclassMockHttpContext:HttpContextBase{privatereadonlyIPrincipal_user=newGenericPrincipal(newGenericIdentity("username"),null/*roles*/);publicoverrideIPrincipalUser{get{return_user;}set{base.User=value;}}publicMockHttpContext(stringUserName){_user=newGen 阅读全文
posted @ 2011-07-18 18:50 today4king 阅读(381) 评论(0) 推荐(0) 编辑