/// <summary> /// Creates an instance of the application /// </summary> /// <param name="application">owner application</param> /// <param name="ownerAssembly">owner assembly</param> public CommonUtils(AccessApi.Application application, Assembly ownerAssembly) : base(application, ownerAssembly) { if (null == application) throw new ArgumentNullException("application"); _ownerApplication = application; }
public static async Task <ClientSesion> InstanceByLogin(string username, string password) { var accessApi = new AccessApi(TestConfig.BaseUrl); var loginRes = await accessApi.LoginAsync(new LoginModel(username, password)); Assert.NotNull(loginRes); Assert.NotNull(loginRes.AccessToken); var attacher = new AccessTokenAttacher(loginRes.AccessToken); attacher.Attach(accessApi); // Test me and get id var me = await accessApi.MeAsync(); Assert.NotEqual(default, me.Id);
/// <summary> /// Creates an instance of the application /// </summary> /// <param name="application">owner application</param> public CommonUtils(AccessApi.Application application) : base(application) { _ownerApplication = application; }
public SetIntersightAccessPolicy() { ApiInstance = new AccessApi(Config); ModelObject = new AccessPolicy(); MethodName = "UpdateAccessPolicyWithHttpInfo"; }
public RemoveIntersightAccessPolicy() { ApiInstance = new AccessApi(Config); MethodName = "DeleteAccessPolicyWithHttpInfo"; }
public GetIntersightAccessPolicyInventory() { ApiInstance = new AccessApi(Config); MethodName = "GetAccessPolicyInventoryListWithHttpInfo"; }