¡@

Home 

c# Programming Glossary: iprincipal

How to manipulate WPF GUI based on user roles

http://stackoverflow.com/questions/1019204/how-to-manipulate-wpf-gui-based-on-user-roles

GUI based on user roles I am using .NET's IIdentity and IPrincipal objects for role based security and I am at the step of modifying..

Need help to understand Moq better

http://stackoverflow.com/questions/1073846/need-help-to-understand-moq-better

it's getting the Name property of the current instance of IPrincipal Test public void Accesses_Name_Of_Current_Principal_When_Setting_ModifiedBy.. Mock IPrincipal mockPrincipal new Mock IPrincipal Mock IAuditable mockAuditable.. Mock IPrincipal mockPrincipal new Mock IPrincipal Mock IAuditable mockAuditable new Mock IAuditable mockPrincipal.SetupGet..

IoC: Castle Windsor and WebAPI

http://stackoverflow.com/questions/16154566/ioc-castle-windsor-and-webapi

BEH fixed link Read also Castle Windsor DelegatingHandler IPrincipal Dependency Injection DI Inversion of Control IoC in ASP.NET..

Can I put an ASP.Net session ID in a hidden form field?

http://stackoverflow.com/questions/43324/can-i-put-an-asp-net-session-id-in-a-hidden-form-field

that accepts the file upload I grab the User object thusly IPrincipal User IPrincipal Application Request.Form uploadid So this actually.. file upload I grab the User object thusly IPrincipal User IPrincipal Application Request.Form uploadid So this actually works but..

Mock HttpContext.Current in Test Init Method

http://stackoverflow.com/questions/4379450/mock-httpcontext-current-in-test-init-method

itself is fakeable just enough for you do replace the IPrincipal User and IIdentity . The following code runs as expected even..

Is this Custom Principal in Base Controller ASP.NET MVC 3 terribly inefficient?

http://stackoverflow.com/questions/8263845/is-this-custom-principal-in-base-controller-asp-net-mvc-3-terribly-inefficient

a custom principal like this public class MyPrincipal IPrincipal public MyPrincipal IIdentity ident List string roles string..

MVC Custom Authentication, Authorization, and Roles Implementation

http://stackoverflow.com/questions/8567358/mvc-custom-authentication-authorization-and-roles-implementation

private static void BuildUserContext IPrincipal user if user.Identity.IsAuthenticated return For my application.. use DI to get a service to retrieve my domain user by the IPrincipal var personService DependencyResolver.Current.GetService IUserBaseService..

Setting the httpcontext current session in unit test

http://stackoverflow.com/questions/9624242/setting-the-httpcontext-current-session-in-unit-test

server new Mock HttpServerUtilityBase var user new Mock IPrincipal var identity new Mock IIdentity var urlHelper new Mock UrlHelper..