/// <summary> /// Construct SiteMapApi instance /// </summary> /// <param name="authenticationContext"></param> /// <param name="roleApi"></param> /// <param name="organizationApi"></param> /// <param name="permissionApi"></param> /// <param name="platformConfiguration"></param> /// <param name="siteMapFilePath"></param> public SiteMapApi(IAuthenticationContext authenticationContext, IRoleApi roleApi, IOrganizationApi organizationApi, IPermissionApi permissionApi, IPlatformConfiguration platformConfiguration, string siteMapFilePath) { this.authenticationContext = authenticationContext; this.roleApi = roleApi; this.organizationApi = organizationApi; this.permissionApi = permissionApi; this.platformConfiguration = platformConfiguration; this.siteMapFilePath = siteMapFilePath; }
public DeleteRoleStory() { Console.WriteLine("=================Setup==================="); base.GlobalSetup(); roleApi = SpringContext.Current.GetObject<IRoleApi>(); Console.WriteLine("============Ending Setup==================="); }
public SetUserToRoles() { Console.WriteLine("=================Setup==================="); base.GlobalSetup(); roleApi = SpringContext.Current.GetObject<IRoleApi>(); Console.WriteLine("============Ending Setup==================="); }
/// <summary> /// Construct PermissionApi instance /// </summary> /// <param name="authenticationContext"></param> /// <param name="membershipApi"></param> /// <param name="roleApi"></param> /// <param name="organizationApi"></param> /// <param name="platformConfiguration"></param> /// <param name="permissionConfigurationReader"></param> public PermissionApi(IAuthenticationContext authenticationContext, IMembershipApi membershipApi, IRoleApi roleApi, IOrganizationApi organizationApi, IPlatformConfiguration platformConfiguration, IPermissionConfigurationReader permissionConfigurationReader) : base(authenticationContext) { this.authenticationContext = authenticationContext; this.membershipApi = membershipApi; this.roleApi = roleApi; this.organizationApi = organizationApi; this.platformConfiguration = platformConfiguration; this.permissionConfigurationReader = permissionConfigurationReader; }
public void Setup() { base.GlobalSetup(); roleApi = SpringContext.Current.GetObject<IRoleApi>(); }
public void Init() { instance = RestService.For <IRoleApi>(hostUrl); }
public RoleService() { _roleApi = RestService.For <IRoleApi>(HttpClientFactory.Create(AppEnvironment.ApiBaseUrl)); }