C# Class OpenSlx.Lib.Utility.MockUserService

Used to mock the user service. Contains method that lets caller specify the user id to be returned by subsequent calls (this will default to ADMIN if not specified).
Inheritance: SLXUserService
Afficher le fichier Open project: nicocrm/OpenSlx

Méthodes publiques

Méthode Description
MockUserService ( ) : System

Setup user service for "ADMIN" username

MockUserService ( String username ) : System

Setup user service with the specified user name.

SetUserId ( String userId ) : void

Set the fake user id to be used.

Method Details

MockUserService() public méthode

Setup user service for "ADMIN" username
public MockUserService ( ) : System
Résultat System

MockUserService() public méthode

Setup user service with the specified user name.
User name not valid in the DB
public MockUserService ( String username ) : System
username String Saleslogix user name (logon name)
Résultat System

SetUserId() public méthode

Set the fake user id to be used.
public SetUserId ( String userId ) : void
userId String
Résultat void