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
Mostrar archivo Open project: nicocrm/OpenSlx

Public Methods

Method 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 method

Setup user service for "ADMIN" username
public MockUserService ( ) : System
return System

MockUserService() public method

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)
return System

SetUserId() public method

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