public void RegisterPermissionDescriptorShouldWork()
 {
     var currentUserPermissionService = new Mock<ICurrentUserPermissionService> ();
     var accessControlManager = new AccessControlManager ( currentUserPermissionService.Object );
     var permissionDescriptor = new ClientPermissionDescriptor ();
     accessControlManager.RegisterPermissionDescriptor ( permissionDescriptor );
 }
Esempio n. 2
0
        public void RegisterPermissionDescriptorShouldWork()
        {
            var currentUserPermissionService = new Mock <ICurrentUserPermissionService> ();
            var accessControlManager         = new AccessControlManager(currentUserPermissionService.Object);
            var permissionDescriptor         = new ClientPermissionDescriptor();

            accessControlManager.RegisterPermissionDescriptor(permissionDescriptor);
        }