export class UserSettingsMock implements Xrm . UserSettings { public dateFormattingInfo : Xrm . DateFormattingInfo ; public defaultDashboardId : string ; public isGuidedHelpEnabled : boolean ; public isHighContrastEnabled : boolean ; public isRTL : boolean ; public languageId : number ; public securityRolePrivileges : string [ ] ; public securityRoles : string [ ] ; public transactionCurrencyId : string ; public userId : string ; public userName : string ; public roles : Xrm . Collection . ItemCollection < Xrm . LookupValue > ; public transactionCurrency : Xrm . LookupValue ; constructor ( components ) { this . dateFormattingInfo = components . dateFormattingInfo ; this . defaultDashboardId = components . defaultDashboardId ; this . isGuidedHelpEnabled = components . isGuidedHelpEnabled ; this . isHighContrastEnabled = components . isHighContrastEnabled ; this . isRTL = components . isRTL ; this . languageId = components . languageId ; this . securityRolePrivileges = components . securityRolePrivileges ; this . securityRoles = components . securityRoles ; this . transactionCurrencyId = components . transactionCurrencyId ; this . userId = components . userId ; this . userName = components . userName ; this . roles = components . roles ; this . transactionCurrency = components . transactionCurrency ; } public getTimeZoneOffsetMinutes ( ) { throw new Error ( "Not implemented" ) ; } } export interface IUserSettingsComponents { dateFormattingInfo ? : Xrm . DateFormattingInfo ; defaultDashboardId ? : string ; isGuidedHelpEnabled : boolean ; isHighContrastEnabled : boolean ; isRTL : boolean ; languageId ? : number ; securityRolePrivileges ? : string [ ] ; securityRoles ? : string [ ] ; transactionCurrencyId ? : string ; userId : string ; userName : string ; roles ? : Xrm . Collection . ItemCollection < Xrm . LookupValue > ; transactionCurrency ? : Xrm . LookupValue ; }